Changeset - 0e6ebf9a3a45
[Not reviewed]
T9_V2 default
0 2 0
Jason Maltzen - 5 years ago 2019-11-02 02:39:30
jason@hiddenachievement.com
Pull x64 binaries into publish releases
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
mac/build-mac-bundle.sh
Show inline comments
...
 
@@ -4,25 +4,25 @@ if [ $# -ne 2 ]; then
 
	echo "Usage: $0 <version> <build_name>"
 
	exit 1
 
fi
 

	
 
VERSION=$1
 
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
 
/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/cp ../bin/x64/Release/DesertPaintLab.exe bin/DesertPaintLab.app/Contents/MacOS/
 
/bin/mkdir -p bin/DesertPaintLab.app/Contents/Resources
 
/bin/cp -r ../data bin/DesertPaintLab.app/Contents/Resources/data
 

	
 
/usr/bin/defaults write `pwd`/bin/DesertPaintLab.app/Contents/Info.plist CFBundleShortVersionString ${VERSION}
 
/usr/bin/defaults write `pwd`/bin/DesertPaintLab.app/Contents/Info.plist CFBundleVersion ${VERSION}
 

	
 
# package up into a DMG
 
/usr/bin/hdiutil create -volname DesertPaintLab -srcfolder bin/ -ov -format UDIF -fs HFS+ ../publish/DesertPaintLab_${BUILD_NAME}.dmg
publish.sh
Show inline comments
 
#!/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 ./bin/x64/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)