mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-31 03:02:08 +08:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
396a3e81d8 | ||
|
|
17fd1248d0 |
@@ -2,9 +2,6 @@ name: Alpha Build
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
tags-ignore: [updater, alpha]
|
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
env:
|
env:
|
||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
||||||
@@ -58,7 +55,7 @@ jobs:
|
|||||||
- name: Install Node
|
- name: Install Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "20"
|
node-version: "22"
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v4
|
- uses: pnpm/action-setup@v4
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
@@ -70,35 +67,6 @@ jobs:
|
|||||||
pnpm i
|
pnpm i
|
||||||
pnpm check ${{ matrix.target }}
|
pnpm check ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Prepare Updater Files
|
|
||||||
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
|
|
||||||
|
|
||||||
- name: Tauri build
|
- name: Tauri build
|
||||||
uses: tauri-apps/tauri-action@v0
|
uses: tauri-apps/tauri-action@v0
|
||||||
env:
|
env:
|
||||||
@@ -113,8 +81,8 @@ jobs:
|
|||||||
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
||||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||||
with:
|
with:
|
||||||
tagName: alpha
|
tagName: alpha-__VERSION__
|
||||||
releaseName: "Clash Verge Rev Alpha"
|
releaseName: "Clash Verge Rev Alpha __VERSION__"
|
||||||
releaseBody: "More new features are now supported."
|
releaseBody: "More new features are now supported."
|
||||||
releaseDraft: false
|
releaseDraft: false
|
||||||
prerelease: true
|
prerelease: true
|
||||||
@@ -158,7 +126,7 @@ jobs:
|
|||||||
- name: Install Node
|
- name: Install Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "20"
|
node-version: "22"
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
@@ -279,7 +247,7 @@ jobs:
|
|||||||
- name: Install Node
|
- name: Install Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "20"
|
node-version: "22"
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v4
|
- uses: pnpm/action-setup@v4
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
|
||||||
|
"identifier": "io.github.clash-verge-rev.clash-verge-rev",
|
||||||
|
"bundle": {
|
||||||
|
"targets": ["deb", "rpm"],
|
||||||
|
"linux": {
|
||||||
|
"deb": {
|
||||||
|
"depends": ["openssl"],
|
||||||
|
"desktopTemplate": "./packages/linux/clash-verge.desktop",
|
||||||
|
"provides": ["clash-verge"],
|
||||||
|
"conflicts": ["clash-verge"],
|
||||||
|
"replaces": ["clash-verge"],
|
||||||
|
"postInstallScript": "./packages/linux/post-install.sh",
|
||||||
|
"preRemoveScript": "./packages/linux/pre-remove.sh"
|
||||||
|
},
|
||||||
|
"rpm": {
|
||||||
|
"depends": ["openssl"],
|
||||||
|
"desktopTemplate": "./packages/linux/clash-verge.desktop",
|
||||||
|
"provides": ["clash-verge"],
|
||||||
|
"conflicts": ["clash-verge"],
|
||||||
|
"obsoletes": ["clash-verge"],
|
||||||
|
"postInstallScript": "./packages/linux/post-install.sh",
|
||||||
|
"preRemoveScript": "./packages/linux/pre-remove.sh"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"externalBin": [
|
||||||
|
"./resources/clash-verge-service",
|
||||||
|
"./resources/install-service",
|
||||||
|
"./resources/uninstall-service",
|
||||||
|
"./sidecar/verge-mihomo",
|
||||||
|
"./sidecar/verge-mihomo-alpha"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"app": {
|
||||||
|
"trayIcon": {
|
||||||
|
"iconPath": "icons/tray-icon.ico",
|
||||||
|
"iconAsTemplate": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user