Skip to content

Commit 83e5594

Browse files
committed
v1.0.2
1 parent fd2a2bd commit 83e5594

4 files changed

Lines changed: 3677 additions & 66 deletions

File tree

main.cjs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,19 @@ function createWindow() {
3232
});
3333

3434
if (isDev) {
35-
win.loadURL(RENDERER_URL); // Vite dev 서버
35+
// 개발 모드: Vite dev 서버에 붙음
36+
win.loadURL(RENDERER_URL);
3637
win.webContents.openDevTools({ mode: 'detach' });
3738
} else {
38-
const indexPath = path.join(process.resourcesPath, 'app', 'dist', 'index.html');
39+
// 배포 모드: asar 내부의 dist/index.html을 로드
40+
const indexPath = path.join(__dirname, 'dist', 'index.html');
3941
win.loadFile(indexPath);
4042
}
4143

42-
win.webContents.setWindowOpenHandler(({ url }) => { shell.openExternal(url); return { action: 'deny' }; });
44+
win.webContents.setWindowOpenHandler(({ url }) => {
45+
shell.openExternal(url);
46+
return { action: 'deny' };
47+
});
4348
}
4449

4550
app.whenReady().then(createWindow);

0 commit comments

Comments
 (0)