fix update port

#28
This commit is contained in:
pompurin404 2024-08-15 11:10:16 +08:00
parent c161afd494
commit fe2f4fa2ad
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View File

@ -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:

View File

@ -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
}
}
)