Skip to content

Commit 665999f

Browse files
committed
Set distributable names & include all in artifacts
1 parent 67d85ac commit 665999f

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,5 @@ jobs:
4343
- uses: actions/upload-artifact@v2
4444
with:
4545
name: distributables
46-
path: |
47-
dist/*.exe
48-
dist/*.deb
49-
dist/*.dmg
46+
path: dist/HttpToolkit-*
5047
if-no-files-found: error

package.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,34 @@
5555
"dmg",
5656
"zip"
5757
],
58+
"artifactName": "HttpToolkit-${os}-${arch}-${version}.${ext}",
5859
"category": "public.app-category.developer-tools",
5960
"icon": "src/icons/icon.icns",
6061
"entitlements": "src/entitlements.plist",
6162
"entitlementsInherit": "src/entitlements.plist",
6263
"forceCodeSigning": false
6364
},
6465
"dmg": {
65-
"background": "src/dmg-background.png"
66+
"background": "src/dmg-background.png",
67+
"artifactName": "HttpToolkit-${version}.dmg"
6668
},
6769
"win": {
6870
"target": [
6971
"nsis",
7072
"portable",
7173
"zip"
7274
],
75+
"artifactName": "HttpToolkit-${os}-${arch}-${version}.${ext}",
7376
"icon": "./src/icons/icon.ico",
7477
"forceCodeSigning": true
7578
},
79+
"nsis": {
80+
"installerIcon": "./src/icons/icon.ico",
81+
"artifactName": "HttpToolkit-installer-${version}.exe"
82+
},
83+
"portable": {
84+
"artifactName": "HttpToolkit-portable-${version}.exe"
85+
},
7686
"linux": {
7787
"target": [
7888
"deb",
@@ -81,6 +91,7 @@
8191
"zip"
8292
],
8393
"executableName": "httptoolkit",
94+
"artifactName": "HttpToolkit-${os}-${arch}-${version}.${ext}",
8495
"category": "Development",
8596
"icon": "./src/icons/icon.svg",
8697
"maintainer": "[email protected]",
@@ -91,6 +102,15 @@
91102
"StartupNotify": true
92103
}
93104
},
105+
"deb": {
106+
"artifactName": "HttpToolkit-${version}.deb"
107+
},
108+
"rpm": {
109+
"artifactName": "HttpToolkit-${version}.rpm"
110+
},
111+
"appImage": {
112+
"artifactName": "HttpToolkit-${version}.AppImage"
113+
},
94114
"afterSign": "./src/hooks/after-sign.js",
95115
"publish": null
96116
},

0 commit comments

Comments
 (0)