feat: Add independent alpha update channel

This commit is contained in:
wonfen 2025-02-11 00:53:39 +08:00
parent 26ca4670ad
commit d75f36066a
2 changed files with 28 additions and 4 deletions

View File

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

View File

@ -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"
]
}
},