📦 Chore(custom): add 7z in build target

This commit is contained in:
Kuingsmile
2026-01-15 16:43:53 +08:00
parent 796fb9847d
commit 8c720ef02c
3 changed files with 19 additions and 4 deletions

View File

@@ -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

View File

@@ -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,

View File

@@ -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 {