taisei/scripts/osx-gen-dmg.sh
Andrei "Akari" Alexeyev 4afaca9476
osx build improvements
2017-09-18 11:20:08 +03:00

13 lines
319 B
Bash
Executable file

#!/usr/bin/env bash
IN="$1"
OUT="$2"
if [[ -z "$IN" ]] || [[ -z "$OUT" ]] || [[ ! -d "$IN" ]]; then
>&2 echo "Usage: $0 <input_directory> <output.dmg>"
exit 1
fi
ln -svf /Applications "$IN/Applications" || exit 1
genisoimage -V Taisei -D -R -apple -no-pad -o "$OUT" "$IN" || exit $?
rm -v "$IN/Applications"