|
@@ -109,6 +109,28 @@ jobs:
|
|
sudo apt-get update
|
|
sudo apt-get update
|
|
sudo apt-get install jq
|
|
sudo apt-get install jq
|
|
echo "VERSION=$(cat package.json | jq '.version' | tr -d '"')" >> $GITHUB_ENV
|
|
echo "VERSION=$(cat package.json | jq '.version' | tr -d '"')" >> $GITHUB_ENV
|
|
|
|
+ echo "BUILDTIME=$(TZ=Asia/Shanghai date)" >> $GITHUB_ENV
|
|
|
|
+
|
|
|
|
+ - run: |
|
|
|
|
+ cat > release.txt << 'EOF'
|
|
|
|
+ ### 我应该下载哪个版本?
|
|
|
|
+
|
|
|
|
+ - Windows x86_64架构: x64-setup.exe (不支持win7)
|
|
|
|
+ - Windows arm64架构: arm64-setup.exe
|
|
|
|
+ - MacOS intel芯片: x64.dmg
|
|
|
|
+ - MacOS apple M芯片: aarch64.dmg (提示文件损坏看下面FAQ)
|
|
|
|
+ - Linux x64架构: amd64.AppImage/amd64.deb
|
|
|
|
+ - Linux arm64架构: arm64.deb
|
|
|
|
+ - Linux armv7架构: armhf.deb
|
|
|
|
+ - Windows 便携板 x86_64架构: x64_portable.zip (不推荐使用,无法自动更新)
|
|
|
|
+ - Windows 便携板 arm64架构: arm64_portable.zip (不推荐使用,无法自动更新)
|
|
|
|
+
|
|
|
|
+ ### FAQ
|
|
|
|
+
|
|
|
|
+ - [https://clash-verge-rev.github.io/faq.html](https://clash-verge-rev.github.io/faq.html)
|
|
|
|
+
|
|
|
|
+ Created at ${{ env.BUILDTIME }}.
|
|
|
|
+ EOF
|
|
|
|
|
|
- name: Upload Release
|
|
- name: Upload Release
|
|
if: startsWith(matrix.target, 'x86_64')
|
|
if: startsWith(matrix.target, 'x86_64')
|
|
@@ -116,7 +138,7 @@ jobs:
|
|
with:
|
|
with:
|
|
tag_name: alpha
|
|
tag_name: alpha
|
|
name: "Clash Verge Rev Alpha"
|
|
name: "Clash Verge Rev Alpha"
|
|
- body: "More new features are now supported."
|
|
|
|
|
|
+ body_path: release.txt
|
|
prerelease: true
|
|
prerelease: true
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
files: src-tauri/target/${{ matrix.target }}/release/bundle/appimage/*.AppImage*
|
|
files: src-tauri/target/${{ matrix.target }}/release/bundle/appimage/*.AppImage*
|
|
@@ -126,7 +148,7 @@ jobs:
|
|
with:
|
|
with:
|
|
tag_name: alpha
|
|
tag_name: alpha
|
|
name: "Clash Verge Rev Alpha"
|
|
name: "Clash Verge Rev Alpha"
|
|
- body: "More new features are now supported."
|
|
|
|
|
|
+ body_path: release.txt
|
|
prerelease: true
|
|
prerelease: true
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
files: src-tauri/target/${{ matrix.target }}/release/bundle/deb/*.deb
|
|
files: src-tauri/target/${{ matrix.target }}/release/bundle/deb/*.deb
|
|
@@ -138,16 +160,19 @@ jobs:
|
|
steps:
|
|
steps:
|
|
- name: Checkout repository
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
|
|
+
|
|
- name: Set Env
|
|
- name: Set Env
|
|
run: |
|
|
run: |
|
|
echo "BUILDTIME=$(TZ=Asia/Shanghai date)" >> $GITHUB_ENV
|
|
echo "BUILDTIME=$(TZ=Asia/Shanghai date)" >> $GITHUB_ENV
|
|
shell: bash
|
|
shell: bash
|
|
|
|
+
|
|
- name: Update Tag
|
|
- name: Update Tag
|
|
uses: richardsimko/update-tag@v1
|
|
uses: richardsimko/update-tag@v1
|
|
with:
|
|
with:
|
|
tag_name: alpha
|
|
tag_name: alpha
|
|
env:
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
+
|
|
- run: |
|
|
- run: |
|
|
cat > release.txt << 'EOF'
|
|
cat > release.txt << 'EOF'
|
|
### 我应该下载哪个版本?
|
|
### 我应该下载哪个版本?
|
|
@@ -159,8 +184,8 @@ jobs:
|
|
- Linux x64架构: amd64.AppImage/amd64.deb
|
|
- Linux x64架构: amd64.AppImage/amd64.deb
|
|
- Linux arm64架构: arm64.deb
|
|
- Linux arm64架构: arm64.deb
|
|
- Linux armv7架构: armhf.deb
|
|
- Linux armv7架构: armhf.deb
|
|
- - Windows便携板 x86_64架构: x64_portable.zip (不推荐使用,无法自动更新)
|
|
|
|
- - MacOS便携板 arm64架构: arm64_portable.zip (不推荐使用,无法自动更新)
|
|
|
|
|
|
+ - Windows 便携板 x86_64架构: x64_portable.zip (不推荐使用,无法自动更新)
|
|
|
|
+ - Windows 便携板 arm64架构: arm64_portable.zip (不推荐使用,无法自动更新)
|
|
|
|
|
|
### FAQ
|
|
### FAQ
|
|
|
|
|
|
@@ -168,6 +193,7 @@ jobs:
|
|
|
|
|
|
Created at ${{ env.BUILDTIME }}.
|
|
Created at ${{ env.BUILDTIME }}.
|
|
EOF
|
|
EOF
|
|
|
|
+
|
|
- name: Upload Release
|
|
- name: Upload Release
|
|
uses: softprops/action-gh-release@v1
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
with:
|