Skip to content

Commit

Permalink
build dmg
Browse files Browse the repository at this point in the history
  • Loading branch information
dongyuwei committed Jul 10, 2019
1 parent 46fb043 commit 86ea015
Show file tree
Hide file tree
Showing 6 changed files with 414 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ hallelujah.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
util/releases.json
.vscode/
node_modules/
*.dmg
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ pinyin in, English out: <br/>

`sh dev.sh`

## build dmg

`sh build-dmg.sh`

## 开源协议

GPL3(GNU GENERAL PUBLIC LICENSE Version 3)
Expand Down
13 changes: 13 additions & 0 deletions appdmg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"title": "hallelujah English input method",
"icon": "him.icns",
"contents": [
{ "x": 448, "y": 344, "type": "link", "path": "/Library/Input Methods/" },
{
"x": 192,
"y": 344,
"type": "file",
"path": "/tmp/hallelujah/build/release/hallelujah.app"
}
]
}
5 changes: 5 additions & 0 deletions build-dmg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sh build.sh
sleep 1
rm /tmp/hallelujah-*.dmg
DATE_WITH_TIME=`date "+%Y%m%d-%H%M%S"`
./dictionary/node_modules/.bin/appdmg appdmg.json /tmp/hallelujah-${DATE_WITH_TIME}.dmg
Loading

0 comments on commit 86ea015

Please sign in to comment.