Skip to content

Commit

Permalink
automatic build to dmg
Browse files Browse the repository at this point in the history
  • Loading branch information
exelban committed Jun 1, 2019
1 parent 92738a9 commit e10db6a
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ xcuserdata/
timeline.xctimeline
playground.xcworkspace

.build
.build
Stats.dmg
Stats.app
create-dmg
25 changes: 25 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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
Binary file added resources/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e10db6a

Please sign in to comment.