Skip to content

Commit

Permalink
Fixed About
Browse files Browse the repository at this point in the history
  • Loading branch information
manngo committed Jun 10, 2019
1 parent 38e9aff commit 0708889
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions compile.sh
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
3 changes: 2 additions & 1 deletion scripts/edit-hosts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit 0708889

Please sign in to comment.