Skip to content

Commit

Permalink
feat(desktop): packed Berty.app inside a .dmg image
Browse files Browse the repository at this point in the history
  • Loading branch information
aeddi committed Mar 21, 2019
1 parent b1b6a0f commit 836e275
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .circleci/config.yml
Expand Up @@ -68,6 +68,7 @@ references:
make deps
fi
brew install dylibbundler
yarn global add appdmg
jobs:
lint:
Expand Down Expand Up @@ -653,11 +654,11 @@ jobs:
command: |
BUILD_MODE=ci-${CIRCLE_BRANCH} /tmp/retry -m 3 make build
dylibbundler -od -b -x ./output/darwin-amd64/Berty.app/Contents/MacOS/berty -d ./output/darwin-amd64/Berty.app/Contents/libs/
mv ./output/darwin-amd64/Berty.app Berty.app
zip -r /tmp/berty.zip ./Berty.app
mv output/darwin-amd64/Berty.app appdmg
appdmg appdmg/config.json /tmp/Berty.dmg
- store_artifacts:
path: /tmp/berty.zip
path: /tmp/Berty.dmg

workflows:
version: 2
Expand Down
Binary file added client/react-native/desktop/appdmg/background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions client/react-native/desktop/appdmg/config.json
@@ -0,0 +1,9 @@
{
"title": "Berty",
"icon": "icon.icns",
"background": "background.png",
"contents": [
{ "x": 468, "y": 230, "type": "link", "path": "/Applications" },
{ "x": 122, "y": 230, "type": "file", "path": "Berty.app" }
]
}
Binary file added client/react-native/desktop/appdmg/icon.icns
Binary file not shown.

0 comments on commit 836e275

Please sign in to comment.