Skip to content

Commit

Permalink
Fixed Path Error in Build
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhalf committed Feb 11, 2022
1 parent a8052cd commit f88d77d
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 21 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
out
out
dist
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path')

addrs = "................................"
const appRootDir = require('app-root-dir').get();
const diodePath = appRootDir + '/bin/diode.exe';
const diodePath = appRootDir.replace("app.asar", "app.asar.unpacked") + '\\bin\\diode.exe';
const spawn = require( 'child_process' ).spawn;

let child;
Expand Down
109 changes: 101 additions & 8 deletions package-lock.json

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

15 changes: 4 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,12 @@
"start": "electron ."
},
"build": {
"extraFiles": [
{
"from": "/bin",
"to": "Resources/bin",
"filter": [
"**/*"
]
}
]
},
"asarUnpack": "**/bin/*"
},
"dependencies": {
"@electron/remote": "^2.0.4",
"app-root-dir": "*"
"app-root-dir": "*",
"asar": "^3.1.0"
},
"devDependencies": {
"electron": "17.0.0"
Expand Down

0 comments on commit f88d77d

Please sign in to comment.