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 install
pnpm prepare --${{ matrix.arch }} pnpm prepare --${{ matrix.arch }}
- name: Build - name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm build:win --${{ matrix.arch }} run: pnpm build:win --${{ matrix.arch }}
- name: Upload Artifacts - name: Upload Artifacts
@ -68,6 +70,8 @@ jobs:
pnpm install pnpm install
pnpm prepare --${{ matrix.arch }} pnpm prepare --${{ matrix.arch }}
- name: Build - name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm build:linux --${{ matrix.arch }} run: pnpm build:linux --${{ matrix.arch }}
- name: Upload Artifacts - name: Upload Artifacts
@ -105,6 +109,8 @@ jobs:
pnpm install pnpm install
pnpm prepare --${{ matrix.arch }} pnpm prepare --${{ matrix.arch }}
- name: Build - name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm build:mac --${{ matrix.arch }} run: pnpm build:mac --${{ matrix.arch }}
- name: Upload Artifacts - 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' - 'clash'
- 'mihomo' - 'mihomo'
win: win:
target: target: nsis
- nsis
requestedExecutionLevel: requireAdministrator requestedExecutionLevel: requireAdministrator
executableName: mihomo-party executableName: mihomo-party
nsis:
artifactName: ${name}-windows-${version}-${arch}-setup.${ext} artifactName: ${name}-windows-${version}-${arch}-setup.${ext}
nsis:
shortcutName: ${productName} shortcutName: ${productName}
uninstallDisplayName: ${productName} uninstallDisplayName: ${productName}
deleteAppDataOnUninstall: true deleteAppDataOnUninstall: true
@ -36,6 +35,7 @@ nsis:
mac: mac:
target: target:
- dmg - dmg
- zip
entitlementsInherit: build/entitlements.mac.plist entitlementsInherit: build/entitlements.mac.plist
extendInfo: extendInfo:
- NSCameraUsageDescription: Application requests access to the device's camera. - NSCameraUsageDescription: Application requests access to the device's camera.
@ -43,8 +43,7 @@ mac:
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder. - NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder. - NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
notarize: false notarize: false
dmg: artifactName: ${name}-macos-${version}-${arch}.${ext}
artifactName: ${name}-macos-${version}-${arch}-installer.${ext}
linux: linux:
desktop: desktop:
MimeType: 'x-scheme-handler/clash;x-scheme-handler/mihomo' MimeType: 'x-scheme-handler/clash;x-scheme-handler/mihomo'
@ -53,11 +52,9 @@ linux:
- rpm - rpm
maintainer: mihomo-party maintainer: mihomo-party
category: Utility category: Utility
deb: artifactName: ${name}-linux-${version}-${arch}.${ext}
artifactName: ${name}-linux-${version}-${arch}-installer.${ext}
rpm:
artifactName: ${name}-linux-${version}-${arch}-installer.${ext}
npmRebuild: false npmRebuild: false
publish: publish:
provider: generic provider: github
url: https://updater.mihomo.party owner: pompurin404
repo: mihomo-party