diff --git a/package.json b/package.json index c128245..6171246 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ ], "extraResources": { "from": "src/preload", - "to": "app/dist/preload" + "to": "app/src/preload" }, "mac": { "artifactName": "${productName}_${version}.${ext}", diff --git a/src/main/index.ts b/src/main/index.ts index 22aaaca..16e9000 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -16,7 +16,7 @@ function createWin() { height: 768, webPreferences: { nodeIntegration: true, - preload: join(__dirname, '../preload/index.js'), + preload: join(__dirname, '../../src/preload/index.js'), }, })