File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const port =
2020const gptscriptBin =
2121 process . env . GPTSCRIPT_BIN ||
2222 join (
23- dev ? join ( resourcesDir , 'app.asar.unpacked' ) : '' ,
23+ ! dev ? join ( resourcesDir , 'app.asar.unpacked' ) : '' ,
2424 'node_modules' ,
2525 '@gptscript-ai' ,
2626 'gptscript' ,
Original file line number Diff line number Diff line change @@ -7,9 +7,7 @@ import os from 'os';
77import { config } from './config.mjs' ;
88
99app . on ( 'window-all-closed' , ( ) => app . quit ( ) ) ;
10- app . on ( 'ready' , ( ) => {
11- startServer ( app . isPackaged ) ;
12- } ) ;
10+ app . on ( 'ready' , startServer ) ;
1311
1412async function startServer ( ) {
1513 // Fix path so that tools can find binaries installed on the system.
@@ -33,6 +31,8 @@ async function startServer() {
3331 process . env . GPTSCRIPT_OPENAPI_REVAMP = 'true' ;
3432 process . env . KNOWLEDGE_BIN = config . knowledgeBin ;
3533
34+ console . log ( 'GPTSCRIPT_BIN=' , config . gptscriptBin ) ;
35+
3636 try {
3737 const url = await startAppServer ( {
3838 dev : config . dev ,
You can’t perform that action at this time.
0 commit comments