Files
@ f7357ecf694c
Branch filter:
Location: ATITD-Tools/Desert-Paint-Lab/mac/build-mac-bundle.sh - annotation
f7357ecf694c
1.1 KiB
application/x-sh
README.md edited online with Bitbucket
1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 1cc5b7a49ff3 | #!/bin/sh
if [ $# -ne 1 ]; then
echo "Usage: $0 <version>"
exit 1
fi
VERSION=$1
if [ -d DesertPaintLab.app ]; then
/bin/mv bin/DesertPaintLab.app bin/DesertPaintLab.app.`/bin/date +"%Y%m%d%H%M%S"`
fi
/bin/mkdir -p bin/DesertPaintLab.app
/bin/mkdir -p bin/DesertPaintLab.app/Contents/MacOS
/bin/cp Info.plist bin/DesertPaintLab.app/Contents/Info.plist
/bin/cp launcher.sh bin/DesertPaintLab.app/Contents/MacOS
/bin/chmod 755 bin/DesertPaintLab.app/Contents/MacOS/launcher.sh
/bin/cp ../bin/Release/DesertPaintLab.exe bin/DesertPaintLab.app/Contents/MacOS/
/bin/mkdir -p bin/DesertPaintLab.app/Contents/Resources
/bin/cp ../bin/Release/colors.txt bin/DesertPaintLab.app/Contents/Resources/
/bin/cp ../bin/Release/ingredients.txt bin/DesertPaintLab.app/Contents/Resources/
/bin/cp -r ../bin/Release/template bin/DesertPaintLab.app/Contents/Resources/template
/usr/bin/defaults write bin/DesertPaintLab.app/Info.plist CFBundleShortVersionString ${VERSION}
/usr/bin/defaults write bin/DesertPaintLab.app/Info.plist CFBundleVersion ${VERSION}
# package up into a DMG
/usr/bin/hdiutil create -volname DesertPaintLab -srcfolder bin/ -ov -format UDIF -fs HFS+ DesertPaintLab.dmg
|