automatic build to dmg

This commit is contained in:
Serhiy Mytrovtsiy
2019-06-01 22:08:33 +02:00
parent 92738a9569
commit e10db6aa21
7 changed files with 29 additions and 1 deletions

5
.gitignore vendored
View File

@@ -20,4 +20,7 @@ xcuserdata/
timeline.xctimeline
playground.xcworkspace
.build
.build
Stats.dmg
Stats.app
create-dmg

25
build.sh Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/sh
if [ ! -d "./create-dmg" ]; then
git clone https://github.com/andreyvit/create-dmg
fi
xcodebuild -configuration Distribution clean build
cp -rf $PWD/build/Release/Stats.app ./
rm -rf echo $PWD/build
./create-dmg/create-dmg \
--volname "Stats" \
--background "./resources/background.png" \
--window-pos 200 120 \
--window-size 500 320 \
--icon-size 80 \
--icon "Stats.app" 125 175 \
--hide-extension "Stats.app" \
--app-drop-link 375 175 \
"Stats.dmg" \
"Stats.app"
rm -rf ./create-dmg
rm -rf Stats.app

BIN
resources/background.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB