From 794c2dc79ea9eee66b8a8724a135733ef4848968 Mon Sep 17 00:00:00 2001 From: gsx <530353222@qq.com> Date: Sat, 19 Mar 2022 19:16:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/controller/example.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/electron/controller/example.js b/electron/controller/example.js index 3f94cb0..88dbc2f 100644 --- a/electron/controller/example.js +++ b/electron/controller/example.js @@ -417,15 +417,6 @@ class ExampleController extends Controller { return false; } - // 资源路径不同 - // let softwarePath = ''; - // if (electronApp.isPackaged) { - // // 打包后 execDir为 应用程序 exe\dmg\dep软件所在目录;打包前该值是项目根目录 - // softwarePath = path.join(this.app.config.execDir, "resources", "extraResources", softName); - // } else { - // // 打包前 - // softwarePath = path.join(this.app.config.execDir, "build", "extraResources", softName); - // } let softwarePath = path.join(Utils.getExtraResourcesDir(), softName); this.app.logger.info('[openSoftware] softwarePath:', softwarePath);