Skip to content

Commit

Permalink
feat: support snap build (#20)
Browse files Browse the repository at this point in the history
* feat: support snap build

* add description

* add usage in readme
  • Loading branch information
embbnux committed Jun 4, 2020
1 parent fada1b3 commit 65ecc36
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ Build a RingCentral desktop app with [RingCentral Embeddable](https://github.com

![preview](https://user-images.githubusercontent.com/7036536/57593463-18891480-756e-11e9-80ed-16bd61655572.png)

## Usage

For Linux, install with snap:

```
$ sudo snap install ringcentral-embeddable-voice
```

Or download installer files (AppImage, deb and snap) [here](https://github.com/ringcentral/ringcentral-embeddable-electron-app/releases).

## Development

### Prerequisites
Expand Down
2 changes: 1 addition & 1 deletion app.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
partition="persist:rcstorage"
allowpopups
id="rc-widget-adapter-frame"
src="https://ringcentral.github.io/ringcentral-embeddable/app.html?appVersion=0.1.3&userAgent=RingCentralEmbeddableForLinux/0.1.3&disableConferenceCall=false"
src="https://ringcentral.github.io/ringcentral-embeddable/app.html?appVersion=0.1.4&userAgent=RingCentralEmbeddableForLinux/0.1.4&disableConferenceCall=false"
>
</webview>
</div>
Expand Down
1 change: 1 addition & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ linux:
target:
- deb
- AppImage
- snap
category: Telephony
executableName: ringcentral-embeddable-voice
executableArgs:
Expand Down
4 changes: 4 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ app.on('activate', () => {
}
});

app.on('browser-window-created', (_, window) => {
window.setMenu(null);
});

ipcMain.on('show-main-window', () => {
if (!mainWindow) {
return;
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "ringcentral-embeddable-voice-app",
"version": "0.1.3",
"description": "A RingCentral phone desktop client, built with RingCentral Embeddable and Electron",
"version": "0.1.4",
"main": "main.js",
"license": "MIT",
"author": {
Expand Down

0 comments on commit 65ecc36

Please sign in to comment.