diff --git a/.github/workflows/buid_arch.yml b/.github/workflows/buid_arch.yml index 53558f14..39c0480c 100644 --- a/.github/workflows/buid_arch.yml +++ b/.github/workflows/buid_arch.yml @@ -18,8 +18,10 @@ on: type: choice options: - windows-latest-x64-zip + - windows-latest-x64-7z - windows-latest-x64-nsis - windows-11-arm-arm64-zip + - windows-11-arm-arm64-7z - windows-11-arm-arm64-nsis - macos-15-intel-x64-dmg - macos-latest-arm64-dmg @@ -51,6 +53,10 @@ jobs: arch: x64 format: zip filter: windows-latest-x64-zip + - os: windows-latest + arch: x64 + format: 7z + filter: windows-latest-x64-7z - os: windows-latest arch: x64 format: nsis @@ -59,6 +65,10 @@ jobs: arch: arm64 format: zip filter: windows-11-arm-arm64-zip + - os: windows-11-arm + arch: arm64 + format: 7z + filter: windows-11-arm-arm64-7z - os: windows-11-arm arch: arm64 format: nsis @@ -209,6 +219,7 @@ jobs: dist_electron/*.exe dist_electron/*.dmg dist_electron/*.zip + dist_electron/*.7z dist_electron/*.AppImage dist_electron/*.deb dist_electron/*.rpm diff --git a/electron-builder.json b/electron-builder.json index b541fbec..76e5d599 100644 --- a/electron-builder.json +++ b/electron-builder.json @@ -61,21 +61,25 @@ }, "win": { "icon": "resources/icon.ico", - "artifactName": "PicList-Setup-${version}-${arch}.exe", + "artifactName": "PicList-Setup-${version}-${arch}-portable.${ext}", "verifyUpdateCodeSignature": false, "target": [ { "target": "nsis", "arch": ["x64", "arm64"] }, + { + "target": "7z", + "arch": ["x64", "arm64"] + }, { "target": "zip", - "arch": ["x64", "arm64"], - "artifactName": "PicList-Setup-${version}-${arch}-portable.${ext}" + "arch": ["x64", "arm64"] } ] }, "nsis": { + "artifactName": "PicList-Setup-${version}-${arch}.exe", "shortcutName": "PicList", "oneClick": false, "allowToChangeInstallationDirectory": true, diff --git a/scripts/afterPack.cjs b/scripts/afterPack.cjs index 61b4895f..589a4b95 100644 --- a/scripts/afterPack.cjs +++ b/scripts/afterPack.cjs @@ -13,7 +13,7 @@ async function main(context) { } } }) - const isZip = targets.some(target => target.name === 'zip') + const isZip = targets.some(target => target.name === 'zip' || target.name === '7z') if (isZip) { const portablePath = path.join(appOutDir, 'PORTABLE') try {