Changeset - 3f17947ff066
[Not reviewed]
default
0 1 1
Jason Maltzen (jmaltzen) - 9 years ago 2015-12-26 04:09:36
jason.maltzen@unsanctioned.net
Add a publish script to simplify packaging
2 files changed with 25 insertions and 5 deletions:
0 comments (0 inline, 0 general)
mac/build-mac-bundle.sh
Show inline comments
 
#!/bin/sh
 

	
 
if [ $# -ne 1 ]; then
 
	echo "Usage: $0 <version>"
 
if [ $# -ne 2 ]; then
 
	echo "Usage: $0 <version> <build_name>"
 
	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"`
 
BUILD_NAME=$2
 

	
 
if [ -d bin/DesertPaintLab.app ]; then
 
	mkdir -p old
 
	/bin/mv bin/DesertPaintLab.app old/DesertPaintLab.app.`/bin/date +"%Y%m%d%H%M%S"`
 
fi
 
/bin/mkdir -p bin/DesertPaintLab.app
...
 
@@ -22,3 +26,3 @@ fi
 

	
 
# package up into a DMG
 
/usr/bin/hdiutil create -volname DesertPaintLab -srcfolder bin/ -ov -format UDIF -fs HFS+ DesertPaintLab.dmg
 
/usr/bin/hdiutil create -volname DesertPaintLab -srcfolder bin/ -ov -format UDIF -fs HFS+ ../publish/DesertPaintLab_${BUILD_NAME}.dmg
publish.sh
Show inline comments
 
new file 100755
 
#!/bin/sh
 

	
 
if [ $# -ne 2 ]; then
 
	echo "Usage: $0 <version> <build name>"
 
	exit 1
 
fi
 

	
 
VERSION=$1
 
BUILD_NAME=$2
 

	
 
mkdir -p publish
 
# Windows Release build
 
( cd ./bin/Release ; /usr/bin/zip -r ../../publish/DesertPaintLab_${BUILD_NAME}.zip . -x .DS_Store )
 

	
 
( cd ./mac ; ./build-mac-bundle.sh "${VERSION}" "${BUILD_NAME}" )
 

	
0 comments (0 inline, 0 general)