删除多余代码

This commit is contained in:
gsx
2022-03-19 19:16:56 +08:00
parent 38af7c39a9
commit 794c2dc79e

View File

@@ -417,15 +417,6 @@ class ExampleController extends Controller {
return false; 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); let softwarePath = path.join(Utils.getExtraResourcesDir(), softName);
this.app.logger.info('[openSoftware] softwarePath:', softwarePath); this.app.logger.info('[openSoftware] softwarePath:', softwarePath);