Skip to content

Commit

Permalink
fix(build): change path build
Browse files Browse the repository at this point in the history
  • Loading branch information
JhonatanMedeiros committed May 24, 2020
1 parent b59c016 commit e93921d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main-process/main-window/main-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class MainWindow {

} else {
this.browserWindow.loadURL(url.format({
pathname: path.join(__dirname, 'dist/webview-angular-electron/index.html'),
pathname: path.join(__dirname, '/../../dist/webview-angular-electron/index.html'),
protocol: 'file:',
slashes: true
}));
Expand Down
31 changes: 31 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"name": "webview-angular-electron",
"version": "0.0.0",
"description": "Manage multiples WebView with Angular e Electron",
"author": {
"email": "[email protected]",
"name": "Jhonatan Hardt de Medeiros",
"url": "https://jhonatanmedeiros.com"
},
"scripts": {
"postinstall": "electron-builder install-app-deps",
"ng": "ng",
Expand Down Expand Up @@ -76,5 +82,30 @@
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS && npm run lint"
}
},
"build": {
"appId": "com.jhonatanmedeiros.webview-angular-electron",
"productName": "Webview Angular Electron",
"linux": {
"category": "Development",
"packageCategory": "Development",
"target": [
{
"target": "deb",
"arch": [ "x64"]
},
{
"target": "snap",
"arch": [ "x64"]
},
{
"target": "AppImage",
"arch": [ "x64"]
}
],
"desktop": {
"Encoding": "UTF-8"
}
}
}
}

0 comments on commit e93921d

Please sign in to comment.