Skip to content

Commit

Permalink
add electron package builder
Browse files Browse the repository at this point in the history
  • Loading branch information
embbnux committed May 16, 2018
1 parent ba53266 commit a4309af
Show file tree
Hide file tree
Showing 6 changed files with 1,051 additions and 14 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
node_modules
release
*.log
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@ $ cd ringcentral-embeddable-voice-app
$ yarn
$ yarn start
```

### Build package

To build a Linux package(deb, AppImage)

```
yarn package-linux
```
Binary file added icon.icns
Binary file not shown.
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 59 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,67 @@
"version": "0.0.1",
"main": "main.js",
"license": "MIT",
"author": {
"name": "Embbnux Ji",
"email": "[email protected]",
"url": "https://github.com/embbnux"
},
"scripts": {
"start": "electron ."
"postinstall": "electron-builder install-app-deps",
"start": "electron .",
"package": "electron-builder",
"package-linux": "electron-builder --linux",
"package-release": "electron-builder --linux -p always"
},
"devDependencies": {
"electron": "^2.0.0"
"electron": "^2.0.0",
"electron-builder": "^20.13.3"
},
"build": {
"productName": "RingCentral Embeddable Voice",
"appId": "com.ringcentral.integration.EmbeddableVoice",
"files": [
"package.json",
"main.js",
"preload.js",
"icon.png",
"icon.icns"
],
"directories": {
"buildResources": "build",
"output": "release"
},
"publish": [
{
"provider": "github",
"owner": "embbnux",
"repo": "ringcentral-embeddable-voice-app"
}
],
"dmg": {
"contents": [
{
"x": 130,
"y": 220
},
{
"x": 410,
"y": 220,
"type": "link",
"path": "/Applications"
}
]
},
"win": {
"target": [
"nsis"
]
},
"linux": {
"target": [
"deb",
"AppImage"
]
}
}
}
Loading

0 comments on commit a4309af

Please sign in to comment.