mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
automatic build to dmg
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -20,4 +20,7 @@ xcuserdata/
|
||||
timeline.xctimeline
|
||||
playground.xcworkspace
|
||||
|
||||
.build
|
||||
.build
|
||||
Stats.dmg
|
||||
Stats.app
|
||||
create-dmg
|
||||
25
build.sh
Normal file
25
build.sh
Normal 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
BIN
resources/background.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Reference in New Issue
Block a user