Debian Codegraph @

manual tests/4 standalone binaries/build_osx_package.sh

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`. -eu
2
3 rmscip-shell system . . rm. -rf buildtmp
4 mkdirscip-shell system . . mkdir. buildtmp
5 ~/meson/meson.py buildtmp --buildtype=release --prefix=/tmp/myapp.app --bindir=Contents/MacOS
6 ninjascip-shell system . . ninja. -C buildtmp install
7 rmscip-shell system . . rm. -rf buildtmp
8 mkdirscip-shell system . . mkdir. -p mnttmp
9 rmscip-shell system . . rm. -f working.dmg
10 gunzipscip-shell system . . gunzip. < template.dmg.gz > working.dmg
11 hdiutil attach working.dmg -noautoopen -quiet -mountpoint mnttmp
12 rmscip-shell system . . rm. -rf mnttmp/myapp.app
13 mvscip-shell system . . mv. /tmp/myapp.appscip-shell filesystem . . `/tmp/myapp.app`. mnttmp
14 # NOTE: output of hdiutil changes every now and then.
15 # Verify that this is still working.
16 hdiutil detach $(hdiutil info|grepscip-shell system . . grep. "mnttmp"|awkscip-shell system . . awk. '{print $1}')
17 rmscip-shell system . . rm. -rf mnttmp
18 rmscip-shell system . . rm. -f myapp.dmg
19 hdiutil convert working.dmg -quiet -format UDZO -imagekey zlib-level=9 -o myapp.dmg
20 rmscip-shell system . . rm. -f working.dmg