try updater

This commit is contained in:
pompurin404 2024-08-05 17:20:57 +08:00
parent a1dc5cae4c
commit ccd59e1731
No known key found for this signature in database
3 changed files with 14 additions and 14 deletions

View File

@ -33,6 +33,8 @@ jobs:
pnpm install
pnpm prepare --${{ matrix.arch }}
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm build:win --${{ matrix.arch }}
- name: Upload Artifacts
@ -68,6 +70,8 @@ jobs:
pnpm install
pnpm prepare --${{ matrix.arch }}
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm build:linux --${{ matrix.arch }}
- name: Upload Artifacts
@ -105,6 +109,8 @@ jobs:
pnpm install
pnpm prepare --${{ matrix.arch }}
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm build:mac --${{ matrix.arch }}
- name: Upload Artifacts

View File

@ -1,3 +0,0 @@
provider: generic
url: https://updater.mihomo.party
updaterCacheDirName: mihomo-party-updater

View File

@ -20,12 +20,11 @@ protocols:
- 'clash'
- 'mihomo'
win:
target:
- nsis
target: nsis
requestedExecutionLevel: requireAdministrator
executableName: mihomo-party
nsis:
artifactName: ${name}-windows-${version}-${arch}-setup.${ext}
nsis:
shortcutName: ${productName}
uninstallDisplayName: ${productName}
deleteAppDataOnUninstall: true
@ -36,6 +35,7 @@ nsis:
mac:
target:
- dmg
- zip
entitlementsInherit: build/entitlements.mac.plist
extendInfo:
- NSCameraUsageDescription: Application requests access to the device's camera.
@ -43,8 +43,7 @@ mac:
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
notarize: false
dmg:
artifactName: ${name}-macos-${version}-${arch}-installer.${ext}
artifactName: ${name}-macos-${version}-${arch}.${ext}
linux:
desktop:
MimeType: 'x-scheme-handler/clash;x-scheme-handler/mihomo'
@ -53,11 +52,9 @@ linux:
- rpm
maintainer: mihomo-party
category: Utility
deb:
artifactName: ${name}-linux-${version}-${arch}-installer.${ext}
rpm:
artifactName: ${name}-linux-${version}-${arch}-installer.${ext}
artifactName: ${name}-linux-${version}-${arch}.${ext}
npmRebuild: false
publish:
provider: generic
url: https://updater.mihomo.party
provider: github
owner: pompurin404
repo: mihomo-party