Compare commits

...
Author SHA1 Message Date
localai-org-maint-bot 6a93349eb7 fix(release): stamp macOS launcher version
Pass the tag-derived semantic version into Fyne when packaging release DMGs so the app bundle metadata matches the GitHub release. Keep local builds on the existing neutral default and guard the workflow handoff with a shell regression test.

Assisted-by: Codex:gpt-5
2026-08-10 08:07:09 +00:00
3 changed files with 22 additions and 2 deletions

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ jobs:
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}
MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }}
MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID }}
run: make release-launcher-darwin
run: make release-launcher-darwin LAUNCHER_APP_VERSION="${GITHUB_REF_NAME#v}"
- name: Upload DMG to Release
uses: softprops/action-gh-release@v3
with:
+2 -1
View File
@@ -6,6 +6,7 @@ GOTEST=$(GOCMD) test
GOVET=$(GOCMD) vet
BINARY_NAME=local-ai
LAUNCHER_BINARY_NAME=local-ai-launcher
LAUNCHER_APP_VERSION?=0.0.0
UBUNTU_VERSION?=2404
UBUNTU_CODENAME?=noble
@@ -1603,7 +1604,7 @@ site-serve: site
build-launcher-darwin:
rm -rf dist/LocalAI.app cmd/launcher/LocalAI.app
mkdir -p dist
cd cmd/launcher && go run fyne.io/tools/cmd/fyne@latest package -os darwin -icon ../../core/http/static/logo.png --executable $(LAUNCHER_BINARY_NAME)
cd cmd/launcher && go run fyne.io/tools/cmd/fyne@latest package -os darwin -icon ../../core/http/static/logo.png --app-version $(LAUNCHER_APP_VERSION) --executable $(LAUNCHER_BINARY_NAME)
mv cmd/launcher/LocalAI.app dist/LocalAI.app
bash contrib/macos/sign-and-notarize.sh sign dist/LocalAI.app
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT=$(dirname "$(dirname "$(dirname "$(realpath "$0")")")")
MAKEFILE="$ROOT/Makefile"
WORKFLOW="$ROOT/.github/workflows/release.yaml"
dry_run=$(make -n -f "$MAKEFILE" build-launcher-darwin LAUNCHER_APP_VERSION=9.8.7)
if ! grep -Fq -- '--app-version 9.8.7' <<<"$dry_run"; then
echo "FAIL: macOS launcher packaging does not pass LAUNCHER_APP_VERSION to Fyne"
exit 1
fi
if ! grep -Fq -- 'LAUNCHER_APP_VERSION="${GITHUB_REF_NAME#v}"' "$WORKFLOW"; then
echo "FAIL: release workflow does not derive the launcher app version from the tag"
exit 1
fi
echo "PASS: macOS launcher releases stamp the tag-derived app version"