Skip to content

Commit 523bf34

Browse files
authored
Merge pull request #224 from njhale/fix/gptscript-bin-path
2 parents 6fbeb27 + ff90ec7 commit 523bf34

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

electron/config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const port =
2020
const 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',

electron/main.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ import os from 'os';
77
import { config } from './config.mjs';
88

99
app.on('window-all-closed', () => app.quit());
10-
app.on('ready', () => {
11-
startServer(app.isPackaged);
12-
});
10+
app.on('ready', startServer);
1311

1412
async 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,

0 commit comments

Comments
 (0)