Skip to content

Commit 84fef1e

Browse files
author
pompurin404
committed
support portable for windows
1 parent 7dfacee commit 84fef1e

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/build.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,17 @@ jobs:
4949
uses: actions/upload-artifact@v4
5050
with:
5151
name: Windows ${{ matrix.arch }}
52-
path: dist/*.exe
52+
path: |
53+
dist/*.exe
54+
dist/*.7z
5355
if-no-files-found: error
5456
- name: Publish Release
5557
if: startsWith(github.ref, 'refs/tags/v')
5658
uses: softprops/action-gh-release@v2
5759
with:
5860
files: |
5961
dist/*.exe
62+
dist/*.7z
6063
dist/latest.yml
6164
token: ${{ secrets.GITHUB_TOKEN }}
6265

electron-builder.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,22 @@ protocols:
2525
- 'clash'
2626
- 'mihomo'
2727
win:
28-
target: nsis
28+
target:
29+
- nsis
30+
- 7z
2931
requestedExecutionLevel: requireAdministrator
3032
executableName: mihomo-party
31-
artifactName: ${name}-windows-${version}-${arch}-setup.${ext}
3233
nsis:
34+
artifactName: ${name}-windows-${version}-${arch}-setup.${ext}
3335
shortcutName: ${productName}
3436
uninstallDisplayName: ${productName}
3537
deleteAppDataOnUninstall: true
3638
allowToChangeInstallationDirectory: true
3739
oneClick: false
3840
perMachine: true
3941
createDesktopShortcut: always
42+
7z:
43+
artifactName: ${name}-windows-${version}-${arch}-portable.${ext}
4044
mac:
4145
target:
4246
- dmg
@@ -59,6 +63,6 @@ linux:
5963
category: Utility
6064
artifactName: ${name}-linux-${version}-${arch}.${ext}
6165
deb:
62-
afterInstall: "build/linux/deb/postinst"
66+
afterInstall: 'build/linux/deb/postinst'
6367
npmRebuild: true
6468
publish: []

0 commit comments

Comments
 (0)