Skip to content

Commit

Permalink
- added release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Tai committed Dec 28, 2019
1 parent c37b4eb commit bf65d03
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
## User settings
xcuserdata/

## Release App
release/app/
release/Fantheon.dmg

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout
Expand Down
2 changes: 1 addition & 1 deletion demogodApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleShortVersionString</key>
<string>1.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>2</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>LSMinimumSystemVersion</key>
Expand Down
Binary file added release/Icon1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added release/MyIcon.icns
Binary file not shown.
14 changes: 14 additions & 0 deletions release/appdmg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"title": "Fantheon",
"icon": "MyIcon.icns",
"contents": [
{ "x": 448, "y": 100, "type": "link", "path": "/Applications" },
{ "x": 192, "y": 100, "type": "file", "path": "app/Fantheon.app" }
],
"window": {
"size" : {
"width" : 656,
"height": 200
}
}
}
17 changes: 17 additions & 0 deletions release/copyAndCreateIcon.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

cp ../imageAssets/icons/App-Store.png Icon1024.png && \
mkdir MyIcon.iconset && \
sips -z 16 16 Icon1024.png --out MyIcon.iconset/icon_16x16.png && \
sips -z 32 32 Icon1024.png --out MyIcon.iconset/icon_16x16@2x.png && \
sips -z 32 32 Icon1024.png --out MyIcon.iconset/icon_32x32.png && \
sips -z 64 64 Icon1024.png --out MyIcon.iconset/icon_32x32@2x.png && \
sips -z 128 128 Icon1024.png --out MyIcon.iconset/icon_128x128.png && \
sips -z 256 256 Icon1024.png --out MyIcon.iconset/icon_128x128@2x.png && \
sips -z 256 256 Icon1024.png --out MyIcon.iconset/icon_256x256.png && \
sips -z 512 512 Icon1024.png --out MyIcon.iconset/icon_256x256@2x.png && \
sips -z 512 512 Icon1024.png --out MyIcon.iconset/icon_512x512.png && \
cp Icon1024.png MyIcon.iconset/icon_512x512@2x.png && \
iconutil -c icns MyIcon.iconset && \
rm -R MyIcon.iconset

5 changes: 5 additions & 0 deletions release/doRelease.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
rm -rf Fantheon.dmg

./copyAndCreateIcon.sh && \
appdmg appdmg.json Fantheon.dmg

0 comments on commit bf65d03

Please sign in to comment.