Files
aego/tools/release/dmg.sh
T
sanspie a6822156cd
ci-platforms / windows amd64 smoke (push) Skipped
ci / release (push) Successful in 8m58s
ci-platforms / darwin amd64 smoke (push) Skipped
ci-platforms / darwin arm64 smoke (push) Skipped
ci / checks (push) Successful in 4m46s
ci / build (amd64, linux, ubuntu-24.04) (push) Successful in 13m28s
Finish Stage 12 editor fixes and refreshed platformer
2026-11-05 17:36:42 +03:00

14 lines
543 B
Bash
Executable File

#!/bin/sh
# Builds a drag-to-Applications disk image from the editor app on macOS; the app is ad-hoc signed.
set -eu
app=${1:?usage: dmg.sh <Aego.app> <out.dmg>}
out=${2:?usage: dmg.sh <Aego.app> <out.dmg>}
[ "$(uname -s)" = Darwin ] || { echo "dmg.sh: needs macOS (hdiutil)" >&2; exit 1; }
stage=$(mktemp -d)
trap 'rm -rf "$stage"' EXIT
cp -R "$app" "$stage/Aego.app"
ln -s /Applications "$stage/Applications"
mkdir -p "$(dirname "$out")"
hdiutil create -quiet -volname Aego -srcfolder "$stage" -ov -format UDZO "$out"
echo "dmg: built $out"