Skip to content

Commit

Permalink
try updater
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Aug 5, 2024
1 parent 448c724 commit e1e714f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
branches:
- master
tags:
- v*
permissions: write-all

jobs:
Expand Down Expand Up @@ -33,6 +35,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
Expand Down Expand Up @@ -68,6 +72,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
Expand Down Expand Up @@ -105,6 +111,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
Expand Down
3 changes: 0 additions & 3 deletions dev-app-update.yml

This file was deleted.

16 changes: 14 additions & 2 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ protocols:
win:
target:
- nsis
arch:
- x64
- ia32
- arm64
requestedExecutionLevel: requireAdministrator
executableName: mihomo-party
nsis:
Expand All @@ -36,6 +40,10 @@ nsis:
mac:
target:
- dmg
- zip
arch:
- x64
- arm64
entitlementsInherit: build/entitlements.mac.plist
extendInfo:
- NSCameraUsageDescription: Application requests access to the device's camera.
Expand All @@ -45,12 +53,17 @@ mac:
notarize: false
dmg:
artifactName: ${name}-macos-${version}-${arch}-installer.${ext}
zip:
artifactName: ${name}-macos-${version}-${arch}-installer.${ext}
linux:
desktop:
MimeType: 'x-scheme-handler/clash;x-scheme-handler/mihomo'
target:
- deb
- rpm
arch:
- x64
- arm64
maintainer: mihomo-party
category: Utility
deb:
Expand All @@ -59,5 +72,4 @@ rpm:
artifactName: ${name}-linux-${version}-${arch}-installer.${ext}
npmRebuild: false
publish:
provider: generic
url: https://updater.mihomo.party
provider: github

0 comments on commit e1e714f

Please sign in to comment.