Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Commit

Permalink
Prepeare for a multiplatform build
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-denry committed May 13, 2020
1 parent d0e5413 commit 0d4cc99
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 12 deletions.
4 changes: 4 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ const settingsService = require(__dirname+'/modules/settings-service')

function initApp() {
createWindow()
// Set Windows platform notifications
if (process.platform === 'win32') {
app.setAppUserModelId("com.denry.chimeverse");
}
}

function createWindow () {
Expand Down
2 changes: 1 addition & 1 deletion modules/menu-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ menuService.createMenu = () => {
},
{
label: 'Quit',
accelerator: 'Command+Q',
accelerator: 'CmdOrCtrl+Q',
click: () => {
app.isQuitting = true
app.quit()
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 39 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
"description": "Jabber/XMPP client based on Converse.js and Electron",
"main": "main.js",
"scripts": {
"start": "electron ."
"postinstall": "electron-builder install-app-deps",
"start": "electron .",
"pack": "build --dir",
"dist": "build",
"dist:win64": "build --platform win --arch x64",
"dist:linux64deb": "build --platform linux --arch x64"
},
"repository": "https://github.com/nick-denry/Chimeverse",
"keywords": [
Expand All @@ -15,7 +20,7 @@
"Electron",
"OMEMO"
],
"author": "Nick Denry",
"author": "Nick Denry <nick@denry.ru>",
"license": "GPL-3.0",
"devDependencies": {
"electron": "^4.2.12",
Expand All @@ -31,5 +36,37 @@
"keytar": "^4.13.0",
"n": "^6.5.1",
"open-iconic": "^1.1.1"
},
"build": {
"appId": "com.denry.chimeverse",
"productName": "Chimeverse",
"mac": {
"category": "public.app-category.social-networking",
"icon": "resources/images/logo.icns",
"target": "dmg"
},
"dmg": {
"contents": [
{
"x": 110,
"y": 150
},
{
"x": 240,
"y": 150,
"type": "link",
"path": "/Applications"
}
]
},
"linux": {
"target": [
"deb"
]
},
"win": {
"target": "nsis",
"icon": "resources/images/logo.ico"
}
}
}
Binary file added resources/images/logo.ico
Binary file not shown.

0 comments on commit 0d4cc99

Please # to comment.