Skip to content

Commit 2b07f9a

Browse files
committed
fix: appId and engine not found in Windows development
1 parent a23ff02 commit 2b07f9a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.electron-vue/webpack.main.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ let mainConfig = {
6868
if (devMode) {
6969
mainConfig.plugins.push(
7070
new webpack.DefinePlugin({
71-
'__static': `"${path.join(__dirname, '../static').replace(/\\/g, '\\\\')}"`
71+
'__static': `"${path.join(__dirname, '../static').replace(/\\/g, '\\\\')}"`,
72+
'appId': `"${build.appId}"`
7273
})
7374
)
7475
}

src/main/configs/engine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
22
'darwin': 'aria2c',
3-
'win32': 'aria2c.exe',
3+
'win32': 'aria2.exe',
44
'linux': 'aria2c'
55
}

0 commit comments

Comments
 (0)