fix: 修复打包后 XCOpenCodeWeb.exe 路径问题
This commit is contained in:
@@ -35,7 +35,7 @@ class XCOpenCodeWebService {
|
|||||||
|
|
||||||
let basePath: string;
|
let basePath: string;
|
||||||
if (isPackaged) {
|
if (isPackaged) {
|
||||||
basePath = path.dirname(app.getPath('exe'));
|
basePath = path.join(process.resourcesPath, 'app.asar.unpacked');
|
||||||
} else {
|
} else {
|
||||||
basePath = process.cwd();
|
basePath = process.cwd();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user