mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-20 08:39:38 +08:00
优化调用
This commit is contained in:
@@ -420,7 +420,7 @@ class ExampleController extends Controller {
|
||||
// 资源路径不同
|
||||
let softwarePath = '';
|
||||
if (electronApp.isPackaged) {
|
||||
// 打包后
|
||||
// 打包后 execDir为 应用程序 exe\dmg\dep软件所在目录;打包前该值是项目根目录
|
||||
softwarePath = path.join(this.app.config.execDir, "resources", "extraResources", softName);
|
||||
} else {
|
||||
// 打包前
|
||||
|
||||
Reference in New Issue
Block a user