diff --git a/compile.sh b/compile.sh index aff7045..eb05e8d 100755 --- a/compile.sh +++ b/compile.sh @@ -1,9 +1,9 @@ -rm -rf release-builds/*; +rm -rf ../release-builds/*; -electron-packager . --overwrite --platform=darwin --arch=x64 --prune=true --out="release-builds/" --icon ./images/edit-hosts.icns; -electron-packager . --overwrite --platform=win32 --arch=x64 --prune=true --out=release-builds --icon images/edit-hosts.ico; +electron-packager . --overwrite --platform=darwin --arch=x64 --prune=true --out="../release-builds/" --icon ./images/edit-hosts.icns; +electron-packager . --overwrite --platform=win32 --arch=x64 --prune=true --out="../release-builds" --icon images/edit-hosts.ico; -cd release-builds; +cd "../release-builds"; mv "Edit Hosts File-darwin-x64" "Edit Hosts File MacOS"; mv "Edit Hosts File-win32-x64" "Edit Hosts File Windows"; diff --git a/scripts/edit-hosts.js b/scripts/edit-hosts.js index 46973fb..4c42f05 100644 --- a/scripts/edit-hosts.js +++ b/scripts/edit-hosts.js @@ -211,7 +211,8 @@ console.log(204) popup.on('close',()=>{popup=undefined;}); */ - fs.readFile(`content/${file}.html`, (err, data) => { + + fs.readFile(path.join(app.getAppPath(),`content/${file}.html`), (err, data) => { about.innerHTML=data.toString(); doShowAbout(); });