Skip to content

Commit fe2f4fa

Browse files
author
pompurin404
committed
fix update port
#28
1 parent c161afd commit fe2f4fa

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/build.yml

+3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
dist/*setup.exe
6262
dist/*portable.7z
6363
dist/latest.yml
64+
body: changelog.md
6465
token: ${{ secrets.GITHUB_TOKEN }}
6566

6667
linux:
@@ -113,6 +114,7 @@ jobs:
113114
files: |
114115
dist/*.deb
115116
dist/*.rpm
117+
body: changelog.md
116118
token: ${{ secrets.GITHUB_TOKEN }}
117119

118120
macos:
@@ -161,6 +163,7 @@ jobs:
161163
uses: softprops/action-gh-release@v2
162164
with:
163165
files: dist/*.dmg
166+
body: changelog.md
164167
token: ${{ secrets.GITHUB_TOKEN }}
165168

166169
aur-release-updater:

src/main/resolve/autoUpdater.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ import { app } from 'electron'
44
import { getControledMihomoConfig } from '../config'
55

66
export async function checkUpdate(): Promise<string | undefined> {
7+
const { 'mixed-port': mixedPort = 7890 } = await getControledMihomoConfig()
78
const res = await axios.get(
89
'https://github.com/pompurin404/mihomo-party/releases/latest/download/latest.yml',
910
{
1011
headers: { 'Content-Type': 'application/octet-stream' },
1112
proxy: {
1213
protocol: 'http',
1314
host: '127.0.0.1',
14-
port: getControledMihomoConfig()['mixed-port'] || 7890
15+
port: mixedPort
1516
}
1617
}
1718
)

0 commit comments

Comments
 (0)