more building
49
package.json
@ -19,12 +19,17 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "tslint src/**/*.ts || true",
|
"lint": "tslint src/**/*.ts || true",
|
||||||
"lint:fix": "tslint src/**/*.ts --fix",
|
"lint:fix": "tslint src/**/*.ts --fix",
|
||||||
|
"build": "npm run build:main | npm run build:renderer",
|
||||||
"build:main": "webpack --config webpack.main.js",
|
"build:main": "webpack --config webpack.main.js",
|
||||||
"build:renderer": "webpack --config webpack.renderer.js",
|
"build:renderer": "webpack --config webpack.renderer.js",
|
||||||
"build:renderer:watch": "webpack --config webpack.renderer.js --watch",
|
"build:renderer:watch": "webpack --config webpack.renderer.js --watch",
|
||||||
"electron": "npm run build:main && (electron --inspect=5858 ./build --watch | npm run build:renderer:watch)",
|
"electron": "npm run build:main && (electron --inspect=5858 ./build --watch | npm run build:renderer:watch)",
|
||||||
"pack": "electron-builder --dir",
|
"pack:linux": "build --linux --x64",
|
||||||
"dist": "electron-builder"
|
"pack:mac": "build --mac",
|
||||||
|
"pack:win": "build --win --x64 --ia32",
|
||||||
|
"dist:linux": "npm run build && npm run pack:linux",
|
||||||
|
"dist:mac": "npm run build && npm run pack:mac",
|
||||||
|
"dist:win": "npm run build && npm run pack:win"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"appId": "com.bitwarden.desktop",
|
"appId": "com.bitwarden.desktop",
|
||||||
@ -35,7 +40,28 @@
|
|||||||
"app": "build"
|
"app": "build"
|
||||||
},
|
},
|
||||||
"mac": {
|
"mac": {
|
||||||
"category": "public.app-category.productivity"
|
"category": "public.app-category.productivity",
|
||||||
|
"target": [
|
||||||
|
"dmg",
|
||||||
|
"zip"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"win": {
|
||||||
|
"target": [
|
||||||
|
"portable",
|
||||||
|
"nsis"
|
||||||
|
],
|
||||||
|
"electronUpdaterCompatibility": ">=0.0.1"
|
||||||
|
},
|
||||||
|
"linux": {
|
||||||
|
"target": [
|
||||||
|
"snap",
|
||||||
|
"rpm",
|
||||||
|
"AppImage",
|
||||||
|
"deb"
|
||||||
|
],
|
||||||
|
"category": "Utility",
|
||||||
|
"synopsis": "A secure and free password manager for all of your devices."
|
||||||
},
|
},
|
||||||
"dmg": {
|
"dmg": {
|
||||||
"background": "./resources/background.png",
|
"background": "./resources/background.png",
|
||||||
@ -58,17 +84,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nsis": {
|
"nsis": {
|
||||||
"perMachine": true
|
"oneClick": false,
|
||||||
},
|
"perMachine": true,
|
||||||
"linux": {
|
"allowToChangeInstallationDirectory": true,
|
||||||
"target": [
|
"uninstallDisplayName": "${productName}",
|
||||||
"snap",
|
"artifactName": "${productName} Setup.${ext}",
|
||||||
"rpm",
|
"deleteAppDataOnUninstall": true
|
||||||
"AppImage",
|
|
||||||
"deb"
|
|
||||||
],
|
|
||||||
"category": "Utility",
|
|
||||||
"synopsis": "A secure and free password manager for all of your devices."
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 403 B After Width: | Height: | Size: 403 B |
Before Width: | Height: | Size: 636 B After Width: | Height: | Size: 636 B |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 636 B After Width: | Height: | Size: 636 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |