diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a5398de..30dca2c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: diff --git a/src/main/resolve/autoUpdater.ts b/src/main/resolve/autoUpdater.ts index e48c17d..d800d46 100644 --- a/src/main/resolve/autoUpdater.ts +++ b/src/main/resolve/autoUpdater.ts @@ -4,6 +4,7 @@ import { app } from 'electron' import { getControledMihomoConfig } from '../config' export async function checkUpdate(): Promise { + 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 { proxy: { protocol: 'http', host: '127.0.0.1', - port: getControledMihomoConfig()['mixed-port'] || 7890 + port: mixedPort } } )