Files
macos-stats/build.sh
2019-07-01 18:57:19 +02:00

26 lines
567 B
Bash

#!/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