From fec36e22eefd99fa6c2bf219e116f88163a8f4a1 Mon Sep 17 00:00:00 2001 From: zwtesttt <107228797+zwtesttt@users.noreply.github.com> Date: Fri, 31 May 2024 15:09:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=9B=B4=E6=94=B9=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=20(#22)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix:更改发布类型 * fix:调整工作流 --- .github/workflows/build-electron.yaml | 2 ++ electron-builder.json5 | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-electron.yaml b/.github/workflows/build-electron.yaml index 4921e934..147fe789 100644 --- a/.github/workflows/build-electron.yaml +++ b/.github/workflows/build-electron.yaml @@ -26,6 +26,8 @@ jobs: - name: Build/release Electron app uses: Yan-Jobs/action-electron-builder@v1.7.0 + env: + EP_RELEASE: true with: # GitHub token, automatically provided to the action # (No need to define this secret in the repo settings) diff --git a/electron-builder.json5 b/electron-builder.json5 index 64e6025c..3e2dc322 100644 --- a/electron-builder.json5 +++ b/electron-builder.json5 @@ -10,7 +10,7 @@ files: ['dist', 'dist-electron'], mac: { target: ['dmg'], - artifactName: '${productName}-Mac-${version}-Installer.${ext}' + artifactName: '${productName}-${os}-${arch}-${version}-Installer.${ext}' }, win: { target: [ @@ -19,7 +19,7 @@ arch: ['x64'] } ], - artifactName: '${productName}-Windows-${version}-Setup.${ext}' + artifactName: '${productName}-${os}-${arch}-${version}-Setup.${ext}' }, nsis: { oneClick: false, @@ -29,6 +29,6 @@ }, linux: { target: ['AppImage'], - artifactName: '${productName}-Linux-${version}.${ext}' + artifactName: '${productName}-${os}-${arch}-${version}.${ext}' } }