diff options
author | akshitkrnagpal <akshitkrnagpal@gmail.com> | 2018-07-02 02:42:29 +0530 |
---|---|---|
committer | Saúl Ibarra Corretgé <s@saghul.net> | 2018-07-05 21:00:19 +0200 |
commit | 921b7f6f9bb1fef87178349983a07a12c31718e3 (patch) | |
tree | d4de3ee0b4aaf9f07d37b7e871805625f58b4bd7 /package.json | |
parent | d47c142ca79eae07a3b5f8809e101f7705e0b968 (diff) |
Configured electron-builder for app release
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 55 |
1 files changed, 48 insertions, 7 deletions
diff --git a/package.json b/package.json index 6b42821..80551d6 100644 --- a/package.json +++ b/package.json @@ -2,16 +2,58 @@ "name": "jitsi-meet-electron", "version": "0.0.0", "description": "Electron application for Jitsi Meet", - "main": "build/main.js", + "main": "./build/main.js", "productName": "Jitsi Meet", "scripts": { "start": "webpack --config ./webpack.config.js --mode development && electron ./build/main.js", - "clean": "rm -rf node_modules", + "clean": "rm -rf node_modules build dist", "lint": "eslint . && flow", - "pack": "webpack --config ./webpack.config.js --mode production && electron-packager .", - "postinstall": "electron-rebuild", + "build": "webpack --config ./webpack.config.js --mode production", + "pack": "npm run build && electron-builder --dir", + "dist": "npm run build && electron-builder", + "postinstall": "electron-builder install-app-deps", "validate": "npm ls" }, + "build": { + "appId": "org.jitsi.jitsi-meet", + "productName": "Jitsi Meet", + "files": [ + "**/*", + "resources", + "!app", + "!main.js" + ], + "mac": { + "artifactName": "${productName}-${version}-${arch}.${ext}", + "category": "public.app-category.video", + "target": "dmg" + }, + "linux": { + "artifactName": "${productName}-${version}-${arch}.${ext}", + "category": "VideoConference;AudioVideo;Audio;Video;Network", + "description": "Jitsi Meet Desktop App", + "executableName": "jitsi-meet", + "target": "AppImage" + }, + "win": { + "target": [ + { + "arch": [ + "x64", + "ia32" + ], + "target": "nsis" + } + ] + }, + "nsis": { + "allowToChangeInstallationDirectory": true, + "oneClick": false + }, + "directories": { + "buildResources": "resources" + } + }, "pre-commit": [ "lint" ], @@ -26,7 +68,7 @@ "electron", "jitsi-meet" ], - "author": "", + "author": "Jitsi Team <support@jitsi.org>", "readmeFilename": "README.md", "license": "Apache-2.0", "dependencies": { @@ -69,9 +111,8 @@ "css-loader": "0.28.11", "devtron": "1.4.0", "electron": "2.0.3", - "electron-packager": "12.0.2", + "electron-builder": "20.19.1", "electron-react-devtools": "0.5.3", - "electron-rebuild": "1.7.3", "eslint": "4.12.1", "eslint-config-jitsi": "github:jitsi/eslint-config-jitsi#v0.1.0", "eslint-plugin-flowtype": "2.46.3", |