diff --git a/.github/workflows/beta-pack.yml b/.github/workflows/beta-pack.yml index cf2cf981..e7b8ee3b 100644 --- a/.github/workflows/beta-pack.yml +++ b/.github/workflows/beta-pack.yml @@ -108,6 +108,14 @@ jobs: - name: Install python setuptools run: pip.exe install setuptools + - name: Build Package win7 Setup x64 + run: npm run pack:win7:setup:x64 + - name: Upload Artifact win7 Setup x64 + uses: actions/upload-artifact@v3 + with: + name: lx-music-desktop-win7_x64-Setup + path: build/*win7_x64-Setup.exe + - name: Build Package win7 7z x64 run: npm run pack:win7:7z:x64 - name: Upload Artifact win7 7z x64 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5e489570..0fb506cd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -86,6 +86,7 @@ jobs: - name: Release win7 package run: | + npm run publish:win7:setup:x64 npm run publish:win7:7z:x64 npm run publish:win7:7z:x86 env: diff --git a/build-config/build-pack.js b/build-config/build-pack.js index 295850eb..f47f0107 100644 --- a/build-config/build-pack.js +++ b/build-config/build-pack.js @@ -179,6 +179,12 @@ const createTarget = { buildOptions: { win: ['7z'] }, options: winOptions, } + case 'win7_setup': + winOptions.artifactName = `\${productName}-v\${version}-win7_${arch}-Setup.\${ext}` + return { + buildOptions: { win: ['nsis'] }, + options: winOptions, + } case 'win7_green': winOptions.artifactName = `\${productName}-v\${version}-win7_${arch}-green.\${ext}` return { diff --git a/package.json b/package.json index 7133aed4..497aade2 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "pack:win:7z": "npm run pack:win:7z:x64", "pack:win:7z:x64": "node build-config/build-pack.js target=win arch=x64 type=green", "pack:win:7z:arm64": "node build-config/build-pack.js target=win arch=arm64 type=green", + "pack:win7:setup:x64": "node build-config/build-pack.js target=win arch=x64 type=win7_setup", "pack:win7:7z:x64": "node build-config/build-pack.js target=win arch=x64 type=win7_green", "pack:win7:7z:x86": "node build-config/build-pack.js target=win arch=x86 type=win7_green", "pack:linux": "node build-config/pack.js && npm run pack:linux:deb && npm run pack:linux:appImage && npm run pack:linux:rpm && npm run pack:linux:pacman", @@ -43,6 +44,7 @@ "publish:win:portable:x86": "node build-config/build-pack.js target=win arch=x86 type=portable publish=always", "publish:win:7z:x64": "node build-config/build-pack.js target=win arch=x64 type=green publish=always", "publish:win:7z:arm64": "node build-config/build-pack.js target=win arch=arm64 type=green publish=always", + "publish:win7:setup:x64": "node build-config/build-pack.js target=win arch=x64 type=win7_setup publish=always", "publish:win7:7z:x64": "node build-config/build-pack.js target=win arch=x64 type=win7_green publish=always", "publish:win7:7z:x86": "node build-config/build-pack.js target=win arch=x86 type=win7_green publish=always", "publish:mac:dmg": "node build-config/build-pack.js target=mac arch=x64 type=dmg publish=always", diff --git a/publish/changeLog.md b/publish/changeLog.md index b6fcb9bc..4e947723 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -11,6 +11,7 @@ ### 新增 - 若自定义源初始化失败,将会出现弹窗提示初始化失败的详情 +- 添加win7_x64架构的安装版安装包构建 ### 优化