mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-06 20:42:57 +08:00
📦 Chore(custom): add 7z in build target
This commit is contained in:
11
.github/workflows/buid_arch.yml
vendored
11
.github/workflows/buid_arch.yml
vendored
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user