fix: failed load preload.js.

This commit is contained in:
草鞋没号 2021-02-18 21:49:53 +08:00
parent 66a9f79c72
commit f28a05bccb
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@
], ],
"extraResources": { "extraResources": {
"from": "src/preload", "from": "src/preload",
"to": "app/dist/preload" "to": "app/src/preload"
}, },
"mac": { "mac": {
"artifactName": "${productName}_${version}.${ext}", "artifactName": "${productName}_${version}.${ext}",

View File

@ -16,7 +16,7 @@ function createWin() {
height: 768, height: 768,
webPreferences: { webPreferences: {
nodeIntegration: true, nodeIntegration: true,
preload: join(__dirname, '../preload/index.js'), preload: join(__dirname, '../../src/preload/index.js'),
}, },
}) })