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
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Windows ${{ matrix.arch }}
|
name: Windows ${{ matrix.arch }}
|
||||||
path: dist/*.exe
|
path: |
|
||||||
|
dist/*setup.exe
|
||||||
|
dist/*portable.7z
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
- name: Publish Release
|
- name: Publish Release
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
dist/*.exe
|
dist/*setup.exe
|
||||||
|
dist/*portable.7z
|
||||||
dist/latest.yml
|
dist/latest.yml
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
|
@ -25,11 +25,14 @@ protocols:
|
||||||
- 'clash'
|
- 'clash'
|
||||||
- 'mihomo'
|
- 'mihomo'
|
||||||
win:
|
win:
|
||||||
target: nsis
|
target:
|
||||||
|
- nsis
|
||||||
|
- 7z
|
||||||
|
artifactName: ${name}-windows-${version}-${arch}-portable.${ext}
|
||||||
requestedExecutionLevel: requireAdministrator
|
requestedExecutionLevel: requireAdministrator
|
||||||
executableName: mihomo-party
|
executableName: mihomo-party
|
||||||
artifactName: ${name}-windows-${version}-${arch}-setup.${ext}
|
|
||||||
nsis:
|
nsis:
|
||||||
|
artifactName: ${name}-windows-${version}-${arch}-setup.${ext}
|
||||||
shortcutName: ${productName}
|
shortcutName: ${productName}
|
||||||
uninstallDisplayName: ${productName}
|
uninstallDisplayName: ${productName}
|
||||||
deleteAppDataOnUninstall: true
|
deleteAppDataOnUninstall: true
|
||||||
|
@ -59,6 +62,6 @@ linux:
|
||||||
category: Utility
|
category: Utility
|
||||||
artifactName: ${name}-linux-${version}-${arch}.${ext}
|
artifactName: ${name}-linux-${version}-${arch}.${ext}
|
||||||
deb:
|
deb:
|
||||||
afterInstall: "build/linux/deb/postinst"
|
afterInstall: 'build/linux/deb/postinst'
|
||||||
npmRebuild: true
|
npmRebuild: true
|
||||||
publish: []
|
publish: []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user