diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 62c9e04a..3860384d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -168,7 +168,7 @@ jobs: body_path: changelog.md token: ${{ secrets.GITHUB_TOKEN }} - artifact: + prerelease: if: startsWith(github.ref, 'refs/heads/') needs: [windows, linux, macos] runs-on: ubuntu-latest @@ -191,7 +191,7 @@ jobs: bin/* prerelease: true - updater: + release: if: startsWith(github.ref, 'refs/tags/v') needs: [windows, macos, linux] runs-on: ubuntu-latest diff --git a/package.json b/package.json index dc2e9e34..98baca3c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mihomo-party", - "version": "1.5.12", + "version": "1.5.13", "description": "Mihomo Party", "main": "./out/main/index.js", "author": "mihomo-party-org", diff --git a/scripts/updater.mjs b/scripts/updater.mjs index fcfd1b5b..075c3178 100644 --- a/scripts/updater.mjs +++ b/scripts/updater.mjs @@ -4,7 +4,7 @@ import { readFileSync, writeFileSync } from 'fs' const pkg = readFileSync('package.json', 'utf-8') let changelog = readFileSync('changelog.md', 'utf-8') const { version } = JSON.parse(pkg) -const downloadUrl = `https://github.com/mihomo-party-org/mihomo-party/releases/download/v${version}` +const downloadUrl = `https://github.com/xishang0128/mihomo-party/releases/download/v${version}` const latest = { version, changelog diff --git a/src/main/resolve/autoUpdater.ts b/src/main/resolve/autoUpdater.ts index b1a1cb1a..7e900204 100644 --- a/src/main/resolve/autoUpdater.ts +++ b/src/main/resolve/autoUpdater.ts @@ -13,7 +13,7 @@ import { promisify } from 'util' export async function checkUpdate(): Promise { const { 'mixed-port': mixedPort = 7890 } = await getControledMihomoConfig() const res = await axios.get( - 'https://github.com/mihomo-party-org/mihomo-party/releases/latest/download/latest.yml', + 'https://github.com/xishang0128/mihomo-party/releases/latest/download/latest.yml', { headers: { 'Content-Type': 'application/octet-stream' }, proxy: { @@ -35,7 +35,7 @@ export async function checkUpdate(): Promise { export async function downloadAndInstallUpdate(version: string): Promise { const { 'mixed-port': mixedPort = 7890 } = await getControledMihomoConfig() - const baseUrl = `https://github.com/mihomo-party-org/mihomo-party/releases/download/v${version}/` + const baseUrl = `https://github.com/xishang0128/mihomo-party/releases/download/v${version}/` const fileMap = { 'win32-x64': `mihomo-party-windows-${version}-x64-setup.exe`, 'win32-ia32': `mihomo-party-windows-${version}-ia32-setup.exe`, diff --git a/src/renderer/src/components/updater/updater-modal.tsx b/src/renderer/src/components/updater/updater-modal.tsx index 4f13c41b..446227f7 100644 --- a/src/renderer/src/components/updater/updater-modal.tsx +++ b/src/renderer/src/components/updater/updater-modal.tsx @@ -44,7 +44,7 @@ const UpdaterModal: React.FC = (props) => { size="sm" className="flex app-nodrag" onPress={() => { - open(`https://github.com/mihomo-party-org/mihomo-party/releases/tag/v${version}`) + open(`https://github.com/xishang0128/mihomo-party/releases/tag/v${version}`) }} > 前往下载 diff --git a/src/renderer/src/pages/settings.tsx b/src/renderer/src/pages/settings.tsx index 4dbe8f13..585b51dc 100644 --- a/src/renderer/src/pages/settings.tsx +++ b/src/renderer/src/pages/settings.tsx @@ -36,7 +36,7 @@ const Settings: React.FC = () => { className="app-nodrag" title="GitHub 仓库" onPress={() => { - window.open('https://github.com/mihomo-party-org/mihomo-party') + window.open('https://github.com/xishang0128/mihomo-party') }} >