fix: 修复打包编译自动化异常问题

This commit is contained in:
DEV_DSW
2026-03-19 16:55:31 +08:00
parent 37be5e8ba7
commit 0dc7f39db2
8 changed files with 90 additions and 56 deletions

View File

@@ -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')
}