fix: alpha build

This commit is contained in:
wonfen
2025-02-17 06:50:52 +08:00
parent 0190702616
commit 17fd1248d0
+6 -33
View File
@@ -2,9 +2,6 @@ name: Alpha Build
on:
workflow_dispatch:
push:
branches: [main]
tags-ignore: [updater, alpha]
permissions: write-all
env:
CARGO_INCREMENTAL: 0
@@ -58,7 +55,7 @@ jobs:
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
- uses: pnpm/action-setup@v4
name: Install pnpm
@@ -70,34 +67,10 @@ jobs:
pnpm i
pnpm check ${{ matrix.target }}
- name: Prepare Updater Files
- name: Setup Linux Config
if: matrix.os == 'ubuntu-22.04'
run: |
mkdir -p updater
# 创建 alpha 更新通道的更新文件
echo '{
"version": "'$(cat package.json | jq -r .version)'",
"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
cp src-tauri/tauri.linux.conf.json src-tauri/tauri.conf.json
- name: Tauri build
uses: tauri-apps/tauri-action@v0
@@ -158,7 +131,7 @@ jobs:
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
- name: Install pnpm
uses: pnpm/action-setup@v4
@@ -279,7 +252,7 @@ jobs:
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
- uses: pnpm/action-setup@v4
name: Install pnpm