LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
CI: the packaging scripts check out the craft-fonts revision release.yml pins (3d9ab3a, with Noto Sans Thai)
Brandon Thomasfd9d045c75b8
diff --git a/docs/releasing.md b/docs/releasing.mdindex 44a1afaaa..914a7ad84 100644--- a/docs/releasing.md+++ b/docs/releasing.md@@ -66,7 +66,7 @@ the web build requires BIZ UDPGothic Regular and packages Noto Sans CJK SC as aLocal macOS, Linux and Windows packaging scripts automatically use the sibling `../craft-fonts`checkout. If it is absent, they clone it at revision-`8dcdacd5153e64560d109541a47d806f26f048c0` (keep the pins in `packaging/fonts.sh` and+`3d9ab3a132ed0eff457e424226a435a901da30d3` (keep the pins in `packaging/fonts.sh` and`packaging/windows/fonts.ps1` in sync with the release workflow). Existing checkouts are left untouched.Set `CRAFT_FONTS_DIR` to use anothercheckout; relative paths resolve from the workspace root. The script requires the Chinese and Japanesediff --git a/packaging/fonts.sh b/packaging/fonts.shindex 61dc913f4..70d9fe14e 100644--- a/packaging/fonts.sh+++ b/packaging/fonts.sh@@ -10,7 +10,7 @@ prepare_fonts() {if [ -z "${CRAFT_FONTS_DIR:-}" ] && [ ! -e "$font_dir" ]; then# Same revision as release.yml. Never update or reset an existing checkout.- local revision=8dcdacd5153e64560d109541a47d806f26f048c0+ local revision=3d9ab3a132ed0eff457e424226a435a901da30d3echo "==> downloading craft-fonts ($revision) to $font_dir"if ! git clone --no-checkout https://github.com/storytold/craft-fonts "$font_dir" ||! git -C "$font_dir" checkout --detach "$revision"; thendiff --git a/packaging/windows/fonts.ps1 b/packaging/windows/fonts.ps1index c927fbb7a..74f383fd8 100644--- a/packaging/windows/fonts.ps1+++ b/packaging/windows/fonts.ps1@@ -6,7 +6,7 @@ function Initialize-CraftFonts([string] $WorkspaceRoot) {if (-not $env:CRAFT_FONTS_DIR -and -not (Test-Path -LiteralPath $fontDir)) {# Same revision as release.yml and packaging/fonts.sh. Existing checkouts stay untouched.- $revision = '8dcdacd5153e64560d109541a47d806f26f048c0'+ $revision = '3d9ab3a132ed0eff457e424226a435a901da30d3'Write-Output "==> downloading craft-fonts ($revision) to $fontDir"& git clone --no-checkout https://github.com/storytold/craft-fonts $fontDirif ($LASTEXITCODE -ne 0) { throw 'Could not download craft-fonts; provide a complete checkout with CRAFT_FONTS_DIR' }