Debian Codegraph @

Packaging/win/README.md

raw symbols SCIP
1 # Windows Build Scripts
2
3 This directory contains scripts for building FontForge on Windows using MSYS2/MinGW-w64.
4
5 ## Directory Structure
6
7 - `ffbuild.sh` - Main build script that installs dependencies and compiles FontForge
8 - `make-portable-package.sh` - Creates portable 7z archives
9 - `strip-python.sh` - Prepares a stripped-down Python distribution for bundling
10 - `launcher/` - Source for the `run_fontforge.exe` wrapper and icons
11 - `runtime/` - Template files copied into the release package (batch scripts, fontconfig)
12 - `setup/` - Inno Setup installer configuration
13 - `debug/` - Debug utilities (GDB scripts)
14
15 ## Building Locally
16
17 Requirements: MSYS2 with UCRT64 or CLANGARM64 environment.
18
19 ```bash
20 # From MSYS2 UCRT64 or CLANGARM64 shell:
21 cd Packaging/win
22
23 # Install dependencies only
24 ./ffbuild.sh --depsonly
25
26 # Full build
27 ./ffbuild.sh
28
29 # Create portable package
30 ./make-portable-package.sh
31 ```
32
33 By default, build outputs go to `Packaging/win/build/`. You can override this
34 with the `BUILD_DIR` environment variable:
35
36 ```bash
37 BUILD_DIR=/tmp/ffbuild ./ffbuild.sh
38 ```
39
40 The build creates `$BUILD_DIR/ReleasePackage/` containing the distributable files.
41
42 ## CI/CD
43
44 The GitHub Actions workflow (`.github/workflows/main.yml`) automates this process,
45 building for both x64 (UCRT64) and ARM64 (CLANGARM64) architectures.
46
47 ## Credits
48
49 These scripts were originally developed by Jeremy Tan as the separate
50 [fontforgebuilds](https://github.com/fontforge/fontforgebuilds) repository,
51 based on earlier work by Matthew Petroff.
52
53 ## License
54
55 - Build scripts (`ffbuild.sh`, etc.): BSD 2-clause license
56 - Icons and graphics by Matthew Petroff: Creative Commons Attribution 3.0 Unported