From 17fd1248d0a6ccc8182c65554ec2be12c6bf8a95 Mon Sep 17 00:00:00 2001 From: wonfen Date: Mon, 17 Feb 2025 06:50:52 +0800 Subject: [PATCH] fix: alpha build --- .github/workflows/alpha.yml | 39 ++++++------------------------------- 1 file changed, 6 insertions(+), 33 deletions(-) diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml index 6dfd08ad4..3ba5c01bb 100644 --- a/.github/workflows/alpha.yml +++ b/.github/workflows/alpha.yml @@ -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