mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +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/*setup.exe
|
||||||
dist/*portable.7z
|
dist/*portable.7z
|
||||||
dist/latest.yml
|
dist/latest.yml
|
||||||
|
body: changelog.md
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
@ -113,6 +114,7 @@ jobs:
|
|||||||
files: |
|
files: |
|
||||||
dist/*.deb
|
dist/*.deb
|
||||||
dist/*.rpm
|
dist/*.rpm
|
||||||
|
body: changelog.md
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
@ -161,6 +163,7 @@ jobs:
|
|||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: dist/*.dmg
|
files: dist/*.dmg
|
||||||
|
body: changelog.md
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
aur-release-updater:
|
aur-release-updater:
|
||||||
|
|||||||
@ -4,6 +4,7 @@ import { app } from 'electron'
|
|||||||
import { getControledMihomoConfig } from '../config'
|
import { getControledMihomoConfig } from '../config'
|
||||||
|
|
||||||
export async function checkUpdate(): Promise<string | undefined> {
|
export async function checkUpdate(): Promise<string | undefined> {
|
||||||
|
const { 'mixed-port': mixedPort = 7890 } = await getControledMihomoConfig()
|
||||||
const res = await axios.get(
|
const res = await axios.get(
|
||||||
'https://github.com/pompurin404/mihomo-party/releases/latest/download/latest.yml',
|
'https://github.com/pompurin404/mihomo-party/releases/latest/download/latest.yml',
|
||||||
{
|
{
|
||||||
@ -11,7 +12,7 @@ export async function checkUpdate(): Promise<string | undefined> {
|
|||||||
proxy: {
|
proxy: {
|
||||||
protocol: 'http',
|
protocol: 'http',
|
||||||
host: '127.0.0.1',
|
host: '127.0.0.1',
|
||||||
port: getControledMihomoConfig()['mixed-port'] || 7890
|
port: mixedPort
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user