mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 03:32:17 +08:00
support portable for windows
This commit is contained in:
parent
7dfaceee05
commit
f596888e12
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
@ -49,14 +49,17 @@ jobs:
|
|||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Windows ${{ matrix.arch }}
|
||||
path: dist/*.exe
|
||||
path: |
|
||||
dist/*setup.exe
|
||||
dist/*portable.7z
|
||||
if-no-files-found: error
|
||||
- name: Publish Release
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: |
|
||||
dist/*.exe
|
||||
dist/*setup.exe
|
||||
dist/*portable.7z
|
||||
dist/latest.yml
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
|
|
@ -25,11 +25,14 @@ protocols:
|
|||
- 'clash'
|
||||
- 'mihomo'
|
||||
win:
|
||||
target: nsis
|
||||
target:
|
||||
- nsis
|
||||
- 7z
|
||||
artifactName: ${name}-windows-${version}-${arch}-portable.${ext}
|
||||
requestedExecutionLevel: requireAdministrator
|
||||
executableName: mihomo-party
|
||||
artifactName: ${name}-windows-${version}-${arch}-setup.${ext}
|
||||
nsis:
|
||||
artifactName: ${name}-windows-${version}-${arch}-setup.${ext}
|
||||
shortcutName: ${productName}
|
||||
uninstallDisplayName: ${productName}
|
||||
deleteAppDataOnUninstall: true
|
||||
|
@ -59,6 +62,6 @@ linux:
|
|||
category: Utility
|
||||
artifactName: ${name}-linux-${version}-${arch}.${ext}
|
||||
deb:
|
||||
afterInstall: "build/linux/deb/postinst"
|
||||
afterInstall: 'build/linux/deb/postinst'
|
||||
npmRebuild: true
|
||||
publish: []
|
||||
|
|
Loading…
Reference in New Issue
Block a user