From d75f36066a5a7d2e5f8da39e40084be1b2367f4c Mon Sep 17 00:00:00 2001 From: wonfen Date: Tue, 11 Feb 2025 00:53:39 +0800 Subject: [PATCH] feat: Add independent alpha update channel --- .github/workflows/alpha.yml | 28 +++++++++++++++++++++++++--- src-tauri/tauri.conf.json | 4 +++- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml index d80aa617..6dfd08ad 100644 --- a/.github/workflows/alpha.yml +++ b/.github/workflows/alpha.yml @@ -73,11 +73,31 @@ jobs: - name: Prepare Updater Files run: | mkdir -p updater + # 创建 alpha 更新通道的更新文件 echo '{ "version": "'$(cat package.json | jq -r .version)'", - "notes": "More new features are now supported.", - "pub_date": "'$(date -u +"%Y-%m-%dT%H:%M:%SZ")'" - }' > updater/update.json + "notes": "Alpha channel update - More new features are now supported.", + "pub_date": "'$(date -u +"%Y-%m-%dT%H:%M:%SZ")'", + "platforms": { + "darwin-x86_64": { + "signature": "", + "url": "https://github.com/clash-verge-rev/clash-verge-rev/releases/download/alpha/Clash.Verge_${VERSION}_x64.dmg" + }, + "darwin-aarch64": { + "signature": "", + "url": "https://github.com/clash-verge-rev/clash-verge-rev/releases/download/alpha/Clash.Verge_${VERSION}_aarch64.dmg" + }, + "linux-x86_64": { + "signature": "", + "url": "https://github.com/clash-verge-rev/clash-verge-rev/releases/download/alpha/clash-verge_${VERSION}_amd64.deb" + }, + "windows-x86_64": { + "signature": "", + "url": "https://github.com/clash-verge-rev/clash-verge-rev/releases/download/alpha/Clash.Verge_${VERSION}_x64-setup.exe" + } + } + }' > updater/update-alpha.json + cp updater/update-alpha.json updater/update-alpha-proxy.json - name: Tauri build uses: tauri-apps/tauri-action@v0 @@ -227,6 +247,8 @@ jobs: files: | src-tauri/target/${{ matrix.target }}/release/bundle/deb/*.deb src-tauri/target/${{ matrix.target }}/release/bundle/rpm/*.rpm + updater/update-alpha.json + updater/update-alpha-proxy.json alpha-for-fixed-webview2: strategy: diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 9199d4db..46e34eef 100755 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -23,7 +23,9 @@ "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEQyOEMyRjBCQkVGOUJEREYKUldUZnZmbStDeStNMHU5Mmo1N24xQXZwSVRYbXA2NUpzZE5oVzlqeS9Bc0t6RVV4MmtwVjBZaHgK", "endpoints": [ "https://download.clashverge.dev/https://github.com/clash-verge-rev/clash-verge-rev/releases/download/updater/update-proxy.json", - "https://github.com/clash-verge-rev/clash-verge-rev/releases/download/updater/update.json" + "https://github.com/clash-verge-rev/clash-verge-rev/releases/download/updater/update.json", + "https://download.clashverge.dev/https://github.com/clash-verge-rev/clash-verge-rev/releases/download/alpha/update-alpha-proxy.json", + "https://github.com/clash-verge-rev/clash-verge-rev/releases/download/alpha/update-alpha.json" ] } },