Skip to content

Commit 666bde4

Browse files
committed
ci: try to fix white screen error
1 parent 5bb52ce commit 666bde4

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

electron/windows/mainWindow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function createMainWindow(): BrowserWindow {
1313
minHeight: 480,
1414
icon: path.join(process.env.VITE_PUBLIC, "electron-vite.svg"),
1515
webPreferences: {
16-
preload: path.join(__dirname, "preload.mjs"),
16+
preload: path.join(__dirname, "/preload.mjs"),
1717
},
1818
});
1919

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"description": "AI-powered SQL query and chart builder for non-technical users.",
1111
"scripts": {
1212
"dev": "vite",
13-
"build": "tsc && vite build && electron-builder",
13+
"build:preload": "tsc electron/preload.ts --outDir dist-electron",
14+
"build": "npm run build:preload && tsc && vite build && electron-builder",
1415
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
1516
"preview": "vite preview",
1617
"postinstall": "electron-builder install-app-deps"
@@ -105,4 +106,4 @@
105106
]
106107
}
107108
}
108-
}
109+
}

0 commit comments

Comments
 (0)