Files
aego/tools/ci/github-macos-package.sh
sanspie ab6ea7ef58
ci-platforms / darwin amd64 smoke (push) Skipped
ci-platforms / windows amd64 smoke (push) Skipped
ci-platforms / darwin arm64 smoke (push) Skipped
github-native / linux amd64 native (push) Skipped
ci / checks (push) Successful in 6m33s
ci / build (amd64, linux, ubuntu-24.04) (push) Failing after 12m26s
ci / release (push) Skipped
github-native / darwin amd64 native (push) Canceled after 0s
github-native / windows amd64 native (push) Canceled after 0s
github-native / darwin arm64 native (push) Canceled after 0s
editor: improve scene tools and prepare native CI
2026-11-06 16:49:11 +03:00

21 lines
979 B
Bash

#!/usr/bin/env bash
set -euo pipefail
root="$PWD/.cache/github-ci"
mkdir -p "$root/macos" "$root/dist/macos"
go build -trimpath -o "$root/macos/aego-editor" ./cmd/aego-editor
go run ./tools/appbundle -bin "$root/macos/aego-editor" -out "$root/macos" \
-version 0.0.0 -icon app/brand/png/aego-256.png
app="$root/macos/Aego Editor.app"
plutil -lint "$app/Contents/Info.plist"
codesign --verify --deep --strict --verbose=2 "$app"
otool -L "$app/Contents/MacOS/aego-editor" | tee "$root/logs/macos-libraries.txt"
# SDL is linked statically; a non-system dependency would make the bundle non-portable.
if otool -L "$app/Contents/MacOS/aego-editor" | tail -n +2 | \
grep -vE '^[[:space:]]*(/System/Library/|/usr/lib/)' ; then
echo 'app bundle has a non-system dynamic dependency; investigate' >&2
exit 1
fi
ditto -c -k --sequesterRsrc --keepParent "$app" "$root/dist/macos/Aego-Editor-macos.zip"
(cd "$root/dist/macos" && shasum -a 256 Aego-Editor-macos.zip > SHA256SUMS.txt)