buckshot/make_dist_mac.sh

36 lines
865 B
Bash
Raw Normal View History

2019-01-07 19:42:47 +00:00
SDIR=build-buckshot-Desktop_Qt_5_12_0_clang_64bit-Release/buckshot.app
2016-12-06 02:12:44 +00:00
DEXTRAS=buckshot-osx/
DDIR=buckshot-osx/buckshot.app
ADIR=assets
2019-01-07 19:42:47 +00:00
2016-12-06 02:12:44 +00:00
mkdir -p $DDIR
2016-12-06 16:26:43 +00:00
# make app bundle with qt frameworks using macdeployqt
2019-01-07 19:42:47 +00:00
~/Qt/5.12.0/clang_64/bin/macdeployqt $SDIR
2016-12-06 16:26:43 +00:00
# copy to dmg staging dir
2019-01-07 19:42:47 +00:00
cp -R $SDIR $DEXTRAS
2016-12-06 02:12:44 +00:00
mkdir -p $DDIR/Contents/MacOS
mkdir -p $DDIR/Contents/Resources
cp $ADIR/Info.plist $DDIR/Contents
cp $ADIR/icons.icns $DDIR/Contents/Resources
2016-12-06 16:26:43 +00:00
# not needed?
#dylibbundler -od -b -x $DDIR/Contents/MacOS/buckshot -d $DDIR/Contents/libs/
2016-12-06 02:12:44 +00:00
# files to include in dmg
#cp doc/gsplusmanual.pdf $DEXTRAS
#cp doc/gsplusmanual.txt $DEXTRAS
cp README.md $DEXTRAS/README.txt
2016-12-11 16:08:58 +00:00
cp LICENSE.txt $DEXTRAS
2016-12-06 02:12:44 +00:00
2017-01-15 22:39:11 +00:00
# COPY BINARIES FROM EXTERNAL PROJECTS
2019-12-17 02:21:28 +00:00
cp ../buckshot-bins/mac/b2d $DDIR/Contents/MacOS
cp ../buckshot-bins/mac/cadius $DDIR/Contents/MacOS
2016-12-06 02:12:44 +00:00
# packaging now in DMG script