Skip to content

Commit

Permalink
Changed dir to active directory on startup
Browse files Browse the repository at this point in the history
When LiveBot was used as an executable, by default, it would think the active directory was the main folder (livebot-win32-x64). Now, upon startup, livebot sets the active directory to wherever all the actual code is. This means it should actually work.

New releases will be coming because of this mistake.
  • Loading branch information
SebOuellette committed Aug 24, 2021
1 parent f8aafe2 commit 6c89837
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.exe filter=lfs diff=lfs merge=lfs -text
2 changes: 2 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ let barry = false;

// Disable the security warning from electron that comes from using an uncompiled version
process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = true;
// Allows LiveBot to work as an executable
process.chdir(__dirname);
// Display that LiveBot has started
console.log('LiveBot started');

Expand Down
Binary file added resources/icons/logo.icns
Binary file not shown.

0 comments on commit 6c89837

Please sign in to comment.