diff --git a/app/main/filePath.js b/app/main/filePath.js index 05eecabd42..5d6b143ce4 100644 --- a/app/main/filePath.js +++ b/app/main/filePath.js @@ -11,7 +11,7 @@ const appPath = app.isPackaged ? path.dirname(app.getPath('exe')) : app.getAppPa * 在新版本中,windows自定义安装路径会将家目录的yakit-projects迁移到软件根目录下,则会使用该目录 */ const defaultYakitProjectPath = path.join(os.homedir(), "yakit-projects") const YakitProjectPath = fs.existsSync(defaultYakitProjectPath)? defaultYakitProjectPath: path.join(appPath, "yakit-projects"); -console.log("YakitProjectPath: ", YakitProjectPath) + /** 引擎和软件安装包路径 */ const yaklangEngineDir = path.join(YakitProjectPath, "yak-engine") /** diff --git a/multibuilder/electron-builder-ee.yaml b/multibuilder/electron-builder-ee.yaml index f4eee4a7c7..3cc32f9f1e 100644 --- a/multibuilder/electron-builder-ee.yaml +++ b/multibuilder/electron-builder-ee.yaml @@ -21,6 +21,8 @@ extraFiles: - "*.txt" - "*.gzip" - "!*.db" + - from: "LICENSE.md" + to: "LICENSE.md" directories: buildResources: resources @@ -80,6 +82,20 @@ win: - x64 icon: "app/assets/yakiteelogo.ico" +nsis: + oneClick: false + perMachine: false + deleteAppDataOnUninstall: true + allowToChangeInstallationDirectory: true + installerIcon: app/assets/yakiteelogo.ico + uninstallerIcon: app/assets/yakiteelogo.ico + unicode: true + include: build/yakit_build.nsh + license: LICENSE.md + warningsAsErrors: false + createDesktopShortcut: false + createStartMenuShortcut: true + #publish: # - provider: generic # url: https://update.electron-builder.com diff --git a/multibuilder/electron-builder-se.yaml b/multibuilder/electron-builder-se.yaml index eea29b1804..04606cbff8 100644 --- a/multibuilder/electron-builder-se.yaml +++ b/multibuilder/electron-builder-se.yaml @@ -21,6 +21,8 @@ extraFiles: - "*.txt" - "*.gzip" - "!*.db" + - from: "LICENSE.md" + to: "LICENSE.md" directories: buildResources: resources @@ -80,6 +82,20 @@ win: - x64 icon: "app/assets/yakitselogo.ico" +nsis: + oneClick: false + perMachine: false + deleteAppDataOnUninstall: true + allowToChangeInstallationDirectory: true + installerIcon: app/assets/yakitselogo.ico + uninstallerIcon: app/assets/yakitselogo.ico + unicode: true + include: build/yakit_build.nsh + license: LICENSE.md + warningsAsErrors: false + createDesktopShortcut: false + createStartMenuShortcut: true + #publish: # - provider: generic # url: https://update.electron-builder.com