Skip to content

Commit 6c89837

Browse files
committed
Changed dir to active directory on startup
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.
1 parent f8aafe2 commit 6c89837

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.exe filter=lfs diff=lfs merge=lfs -text

js/app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ let barry = false;
3030

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

resources/icons/logo.icns

19.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)