Skip to content

Commit 036e97c

Browse files
committed
build: name desktop installers clearly
1 parent cf16905 commit 036e97c

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/build-desktop-release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ jobs:
129129
run: |
130130
$ErrorActionPreference = 'Stop'
131131
gh release view "$env:RELEASE_TAG" | Out-Null
132-
$files = Get-ChildItem -Path release/desktop -File | ForEach-Object { $_.FullName }
132+
$files = Get-ChildItem -Path release/desktop -File | Where-Object {
133+
$_.Name -match '^1shell-desktop-.*\.(exe|zip|dmg|AppImage)$' -or
134+
$_.Name -match '^1shell-desktop-.*\.tar\.gz$'
135+
} | ForEach-Object { $_.FullName }
133136
if (-not $files) { throw 'No desktop release files found.' }
134137
gh release upload "$env:RELEASE_TAG" @files --clobber

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,24 +78,28 @@
7878
"package.json"
7979
],
8080
"win": {
81+
"artifactName": "1shell-desktop-${version}-windows-${arch}.${ext}",
8182
"target": [
8283
"nsis",
8384
"zip"
8485
]
8586
},
8687
"nsis": {
88+
"artifactName": "1shell-desktop-${version}-windows-${arch}-setup.${ext}",
8789
"oneClick": false,
8890
"perMachine": false,
8991
"allowToChangeInstallationDirectory": true
9092
},
9193
"mac": {
94+
"artifactName": "1shell-desktop-${version}-macos-${arch}.${ext}",
9295
"target": [
9396
"dmg",
9497
"zip"
9598
],
9699
"category": "public.app-category.utilities"
97100
},
98101
"linux": {
102+
"artifactName": "1shell-desktop-${version}-linux-${arch}.${ext}",
99103
"target": [
100104
"AppImage",
101105
"tar.gz"

0 commit comments

Comments
 (0)