diff --git a/.gitignore b/.gitignore index c7613ed4d70..2e85c41c045 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,7 @@ xcuserdata/ timeline.xctimeline playground.xcworkspace -.build \ No newline at end of file +.build +Stats.dmg +Stats.app +create-dmg \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100644 index 00000000000..ee540dc2b94 --- /dev/null +++ b/build.sh @@ -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 diff --git a/resources/background.png b/resources/background.png new file mode 100644 index 00000000000..1e3eb8f61cd Binary files /dev/null and b/resources/background.png differ diff --git a/icon/logo.png b/resources/logo.png similarity index 100% rename from icon/logo.png rename to resources/logo.png diff --git a/icon/logo.psd b/resources/logo.psd similarity index 100% rename from icon/logo.psd rename to resources/logo.psd diff --git a/icon/tray_icon.psd b/resources/tray_icon.psd similarity index 100% rename from icon/tray_icon.psd rename to resources/tray_icon.psd diff --git a/icon/widgets.psd b/resources/widgets.psd similarity index 100% rename from icon/widgets.psd rename to resources/widgets.psd