LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
ci: retain LightCraft installer and package checks
skylartaylor3885b61e6b35
diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.ymlindex bdfdc21c1..5fc2092a9 100644--- a/.github/workflows/freebsd.yml+++ b/.github/workflows/freebsd.yml@@ -32,4 +32,5 @@ jobs:# Intentionally tracked at @main (not SHA-pinned) so org-wide CI improvements, security fixes, and build optimizations propagate without PR churn across all craftapp repos.uses: storytold/craft-common-actions/.github/workflows/freebsd.yml@mainwith:+ require-craft-fonts: truecraft-fonts-ref: 3d9ab3a132ed0eff457e424226a435a901da30d3diff --git a/.github/workflows/packaging-lint.yml b/.github/workflows/packaging-lint.ymlindex f54b0538b..71d3b3063 100644--- a/.github/workflows/packaging-lint.yml+++ b/.github/workflows/packaging-lint.yml@@ -21,3 +21,19 @@ jobs:lint:# Intentionally tracked at @main (not SHA-pinned) so org-wide CI improvements, security fixes, and build optimizations propagate without PR churn across all craftapp repos.uses: storytold/craft-common-actions/.github/workflows/packaging-lint.yml@main+ with:+ extra-checks-script: packaging/check-app-specific.sh++ windows-install-folder:+ runs-on: windows-latest+ timeout-minutes: 10+ steps:+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1+ - name: Install WiX+ shell: pwsh+ run: dotnet tool install --global wix --version 5.0.2+ - name: Install-folder fallback and precedence (real MSI AppSearch)+ shell: pwsh+ run: |+ ./packaging/windows/test-install-folder.ps1 -Arch x64+ ./packaging/windows/test-install-folder.ps1 -Arch x86diff --git a/packaging/check-app-specific.sh b/packaging/check-app-specific.shnew file mode 100644index 000000000..c14ca5725--- /dev/null+++ b/packaging/check-app-specific.sh@@ -0,0 +1,24 @@+#!/usr/bin/env bash+# App-specific installer and package assertions retained alongside shared packaging lint.+set -euo pipefail+cd "$(dirname "${BASH_SOURCE[0]}")/.."++for want in '<UIRef Id="LightcraftUI" />' 'Value="InstallDirDlg"' '<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />' \+ 'Key="Software\LightCraft" Name="InstallFolder"' 'Value="LaunchLightcraft"'; do+ grep -qF "$want" packaging/windows/lightcraft.wxs || { echo "::error::lightcraft.wxs lost: $want"; exit 1; }+done+grep -qF '<DialogRef Id="ExitDialog" />' packaging/windows/lightcraft.wxs \+ || { echo "::error::ExitDialog is not referenced; installs and removes end without a completion dialog"; exit 1; }++python3 - <<'PYEOF'+import yaml+manifests = []+for name in ("ai.storyteller.lightcraft.yml", "ai.storyteller.lightcraft.bundle.yml"):+ with open("packaging/linux/flatpak/" + name) as source:+ manifest = yaml.safe_load(source)+ assert manifest["id"] == "ai.storyteller.lightcraft" and manifest["command"] == "lightcraft", name+ manifests.append(manifest)+for key in ("runtime", "runtime-version", "sdk", "finish-args"):+ assert manifests[0][key] == manifests[1][key], f"Flatpak manifests disagree on {key}"+print("LightCraft package identity ok")+PYEOF