mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-15 19:22:31 +08:00
parent
c161afd494
commit
fe2f4fa2ad
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
@ -61,6 +61,7 @@ jobs:
|
|||
dist/*setup.exe
|
||||
dist/*portable.7z
|
||||
dist/latest.yml
|
||||
body: changelog.md
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
linux:
|
||||
|
@ -113,6 +114,7 @@ jobs:
|
|||
files: |
|
||||
dist/*.deb
|
||||
dist/*.rpm
|
||||
body: changelog.md
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
macos:
|
||||
|
@ -161,6 +163,7 @@ jobs:
|
|||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: dist/*.dmg
|
||||
body: changelog.md
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
aur-release-updater:
|
||||
|
|
|
@ -4,6 +4,7 @@ import { app } from 'electron'
|
|||
import { getControledMihomoConfig } from '../config'
|
||||
|
||||
export async function checkUpdate(): Promise<string | undefined> {
|
||||
const { 'mixed-port': mixedPort = 7890 } = await getControledMihomoConfig()
|
||||
const res = await axios.get(
|
||||
'https://github.com/pompurin404/mihomo-party/releases/latest/download/latest.yml',
|
||||
{
|
||||
|
@ -11,7 +12,7 @@ export async function checkUpdate(): Promise<string | undefined> {
|
|||
proxy: {
|
||||
protocol: 'http',
|
||||
host: '127.0.0.1',
|
||||
port: getControledMihomoConfig()['mixed-port'] || 7890
|
||||
port: mixedPort
|
||||
}
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user