test: 打包冒烟支持跳过单实例锁与固定隔离环境

This commit is contained in:
yu committed 2026-10-28 17:46:32 +08:00
1 parent d6165c910c
commit 38a561a7cd
3 files changed
+49 -2

No files matched your search

+2 -1
View File
@@ -172,7 +172,8 @@ function registerIpc(): void {
});
}
const gotLock = app.requestSingleInstanceLock();
// 打包冒烟/自动化测试需要与用户日常实例隔离;正常启动仍然保持单实例。
const gotLock = process.env.RPA_SKIP_SINGLE_INSTANCE === "1" ? true : app.requestSingleInstanceLock();
if (!gotLock) {
app.quit();
} else {