mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
chore: fix electron build
This commit is contained in:
parent
f070f2677c
commit
06c45f0683
3 changed files with 9 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
# compiled output
|
||||
/dist
|
||||
/app-builds
|
||||
/tmp
|
||||
/out-tsc
|
||||
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ function createWindow(params) {
|
|||
},
|
||||
icon: ICONS_FOLDER + '/app-icons/icon_256x256.png'
|
||||
}));
|
||||
mainWin.webContents.openDevTools();
|
||||
}
|
||||
|
||||
initWinEventListeners(app, IS_MAC, nestedWinParams, indicatorMod);
|
||||
|
|
|
|||
11
package.json
11
package.json
|
|
@ -28,7 +28,7 @@
|
|||
"e2e": "ng e2e",
|
||||
"electron": "npm run buildElectron && ./node_modules/.bin/electron .",
|
||||
"pack": "electron-builder --dir",
|
||||
"localInstall": "sudo echo 'Starting local install' && rm -Rf ./dist/ && npm run buildElectron && electron-builder --linux && sudo dpkg -i dist/sp2*.deb",
|
||||
"localInstall": "sudo echo 'Starting local install' && rm -Rf ./dist/ && npm run buildElectron && electron-builder --linux && sudo dpkg -i app-builds/sp2*.deb",
|
||||
"dist": "run-s buildFrontend && electron-builder",
|
||||
"distLinuxAndWindows": "run-s buildFrontend && electron-builder --linux --win",
|
||||
"pub": "run-s buildFrontend && electron-builder -p always",
|
||||
|
|
@ -47,8 +47,11 @@
|
|||
"appId": "superProductivity",
|
||||
"files": [
|
||||
"electron/**/*",
|
||||
"app/**/*"
|
||||
"dist/**/*"
|
||||
],
|
||||
"directories": {
|
||||
"output": "./app-builds"
|
||||
},
|
||||
"mac": {
|
||||
"category": "productivity",
|
||||
"publish": [
|
||||
|
|
@ -69,8 +72,8 @@
|
|||
"category": "Utility",
|
||||
"target": [
|
||||
"AppImage",
|
||||
"deb",
|
||||
"snap"
|
||||
"snap",
|
||||
"deb"
|
||||
],
|
||||
"publish": [
|
||||
"github",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue