fix: 修复打包编译自动化异常问题
This commit is contained in:
@@ -11,7 +11,7 @@ const openedTabIndexByChannelName = new Map<string, number>()
|
||||
|
||||
function getScriptsDir() {
|
||||
return app.isPackaged
|
||||
? path.join(process.resourcesPath, 'scripts')
|
||||
? path.join(__dirname, 'scripts')
|
||||
: path.join(process.cwd(), 'src/main/scripts')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user