|
|
|
|
@@ -106,7 +106,6 @@ jobs:
|
|
|
|
|
with:
|
|
|
|
|
tagName: v__VERSION__
|
|
|
|
|
releaseName: "Clash Verge Rev Lite v__VERSION__"
|
|
|
|
|
releaseBody: "More new features are now supported."
|
|
|
|
|
tauriScript: pnpm
|
|
|
|
|
args: --target ${{ matrix.target }}
|
|
|
|
|
|
|
|
|
|
@@ -219,14 +218,13 @@ jobs:
|
|
|
|
|
sudo apt-get update
|
|
|
|
|
sudo apt-get install jq
|
|
|
|
|
echo "VERSION=$(cat package.json | jq '.version' | tr -d '"')" >> $GITHUB_ENV
|
|
|
|
|
echo "BUILDTIME=$(TZ=Asia/Shanghai date)" >> $GITHUB_ENV
|
|
|
|
|
echo "BUILDTIME=$(TZ=Europe/Moscow date)" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
|
|
- name: Upload Release
|
|
|
|
|
uses: softprops/action-gh-release@v2
|
|
|
|
|
with:
|
|
|
|
|
tag_name: v${{env.VERSION}}
|
|
|
|
|
name: "Clash Verge Rev Lite v${{env.VERSION}}"
|
|
|
|
|
body: "More new features are now supported."
|
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
files: |
|
|
|
|
|
src-tauri/target/${{ matrix.target }}/release/bundle/deb/*.deb
|
|
|
|
|
@@ -275,8 +273,8 @@ jobs:
|
|
|
|
|
|
|
|
|
|
- name: Download WebView2 Runtime
|
|
|
|
|
run: |
|
|
|
|
|
invoke-webrequest -uri https://github.com/westinyang/WebView2RuntimeArchive/releases/download/109.0.1518.78/Microsoft.WebView2.FixedVersionRuntime.109.0.1518.78.${{ matrix.arch }}.cab -outfile Microsoft.WebView2.FixedVersionRuntime.109.0.1518.78.${{ matrix.arch }}.cab
|
|
|
|
|
Expand .\Microsoft.WebView2.FixedVersionRuntime.109.0.1518.78.${{ matrix.arch }}.cab -F:* ./src-tauri
|
|
|
|
|
invoke-webrequest -uri https://github.com/westinyang/WebView2RuntimeArchive/releases/download/133.0.3065.92/Microsoft.WebView2.FixedVersionRuntime.133.0.3065.92.${{ matrix.arch }}.cab -outfile Microsoft.WebView2.FixedVersionRuntime.133.0.3065.92.${{ matrix.arch }}.cab
|
|
|
|
|
Expand .\Microsoft.WebView2.FixedVersionRuntime.133.0.3065.92.${{ matrix.arch }}.cab -F:* ./src-tauri
|
|
|
|
|
Remove-Item .\src-tauri\tauri.windows.conf.json
|
|
|
|
|
Rename-Item .\src-tauri\webview2.${{ matrix.arch }}.json tauri.windows.conf.json
|
|
|
|
|
|
|
|
|
|
@@ -317,7 +315,6 @@ jobs:
|
|
|
|
|
with:
|
|
|
|
|
tag_name: v${{steps.build.outputs.appVersion}}
|
|
|
|
|
name: "Clash Verge Rev Lite v${{steps.build.outputs.appVersion}}"
|
|
|
|
|
body: "More new features are now supported."
|
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
files: src-tauri/target/${{ matrix.target }}/release/bundle/nsis/*setup*
|
|
|
|
|
|
|
|
|
|
@@ -376,3 +373,85 @@ jobs:
|
|
|
|
|
run: pnpm updater-fixed-webview2
|
|
|
|
|
env:
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
|
|
create_release_notes:
|
|
|
|
|
name: Create Release Notes
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout repository
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
- name: Fetch UPDATE logs
|
|
|
|
|
id: fetch_update_logs
|
|
|
|
|
run: |
|
|
|
|
|
if [ -f "UPDATELOG.md" ]; then
|
|
|
|
|
UPDATE_LOGS=$(awk '/^## v/{if(flag) exit; flag=1} flag' UPDATELOG.md)
|
|
|
|
|
if [ -n "$UPDATE_LOGS" ]; then
|
|
|
|
|
echo "Found update logs"
|
|
|
|
|
echo "UPDATE_LOGS<<EOF" >> $GITHUB_ENV
|
|
|
|
|
echo "$UPDATE_LOGS" >> $GITHUB_ENV
|
|
|
|
|
echo "EOF" >> $GITHUB_ENV
|
|
|
|
|
else
|
|
|
|
|
echo "No update sections found in UPDATELOG.md"
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
echo "UPDATELOG.md file not found"
|
|
|
|
|
fi
|
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
|
|
- name: Get Version
|
|
|
|
|
run: |
|
|
|
|
|
sudo apt-get update
|
|
|
|
|
sudo apt-get install jq
|
|
|
|
|
echo "VERSION=$(cat package.json | jq '.version' | tr -d '"')" >> $GITHUB_ENV
|
|
|
|
|
echo "BUILDTIME=$(TZ=Europe/Moscow date)" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
|
|
- run: |
|
|
|
|
|
if [ -z "$UPDATE_LOGS" ]; then
|
|
|
|
|
echo "No update logs found, using default message"
|
|
|
|
|
UPDATE_LOGS="More new features are now supported. Check for detailed changelog soon."
|
|
|
|
|
else
|
|
|
|
|
echo "Using found update logs"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
cat > release.txt << EOF
|
|
|
|
|
$UPDATE_LOGS
|
|
|
|
|
|
|
|
|
|
## Which version should I download?
|
|
|
|
|
|
|
|
|
|
### macOS
|
|
|
|
|
<a href="https://github.com/coolcoala/clash-verge-rev-lite/releases/download/v${{ env.VERSION }}/Clash.Verge.Rev.Lite_${{ env.VERSION }}_aarch64.dmg"><img src="https://img.shields.io/badge/DMG-default?style=flat&logo=apple&label=Apple%20Silicon"></a><br>
|
|
|
|
|
<a href="https://github.com/coolcoala/clash-verge-rev-lite/releases/download/v${{ env.VERSION }}/Clash.Verge.Rev.Lite_${{ env.VERSION }}_x64.dmg"><img src="https://img.shields.io/badge/DMG-default?style=flat&logo=apple&label=Intel"></a><br>
|
|
|
|
|
> :warning: **Warning**
|
|
|
|
|
If you get a notification that the application is corrupted when you run it on macOS, run this command:<br>
|
|
|
|
|
`sudo xattr -r -c /Applications/Clash\ Verge\ Rev\ Lite.app`
|
|
|
|
|
|
|
|
|
|
### Linux
|
|
|
|
|
<a href="https://github.com/coolcoala/clash-verge-rev-lite/releases/download/v${{ env.VERSION }}/Clash.Verge.Rev.Lite_${{ env.VERSION }}_amd64.deb"><img src="https://img.shields.io/badge/x64-default?style=flat&logo=debian&label=DEB"> </a><br>
|
|
|
|
|
<a href="https://github.com/coolcoala/clash-verge-rev-lite/releases/download/v${{ env.VERSION }}/Clash.Verge.Rev.Lite-${{ env.VERSION }}-1.x86_64.rpm"><img src="https://img.shields.io/badge/x64-default?style=flat&logo=fedora&label=RPM"> </a>
|
|
|
|
|
|
|
|
|
|
<a href="https://github.com/coolcoala/clash-verge-rev-lite/releases/download/v${{ env.VERSION }}/Clash.Verge.Rev.Lite_${{ env.VERSION }}_arm64.deb"><img src="https://img.shields.io/badge/arm64-default?style=flat&logo=debian&label=DEB"> </a><br>
|
|
|
|
|
<a href="https://github.com/coolcoala/clash-verge-rev-lite/releases/download/v${{ env.VERSION }}/Clash.Verge.Rev.Lite-${{ env.VERSION }}-1.aarch64.rpm"><img src="https://img.shields.io/badge/aarch64-default?style=flat&logo=fedora&label=RPM"> </a>
|
|
|
|
|
|
|
|
|
|
<a href="https://github.com/coolcoala/clash-verge-rev-lite/releases/download/v${{ env.VERSION }}/Clash.Verge.Rev.Lite_${{ env.VERSION }}_armhf.deb"><img src="https://img.shields.io/badge/armhf-default?style=flat&logo=debian&label=DEB"> </a><br>
|
|
|
|
|
<a href="https://github.com/coolcoala/clash-verge-rev-lite/releases/download/v${{ env.VERSION }}/Clash.Verge.Rev.Lite-${{ env.VERSION }}-1.armhfp.rpm"><img src="https://img.shields.io/badge/armhfp-default?style=flat&logo=fedora&label=RPM"> </a>
|
|
|
|
|
|
|
|
|
|
### Windows (Win7 is no longer supported)
|
|
|
|
|
#### Normal version (recommended)
|
|
|
|
|
<a href="https://github.com/coolcoala/clash-verge-rev-lite/releases/download/v${{ env.VERSION }}/Clash.Verge.Rev.Lite_${{ env.VERSION }}_x64-setup.exe"><img src="https://badgen.net/badge/icon/x64?icon=windows&label=exe"></a><br>
|
|
|
|
|
<a href="https://github.com/coolcoala/clash-verge-rev-lite/releases/download/v${{ env.VERSION }}/Clash.Verge.Rev.Lite_${{ env.VERSION }}_arm64-setup.exe"><img src="https://badgen.net/badge/icon/arm64?icon=windows&label=exe"></a>
|
|
|
|
|
#### Portable version is no longer available with many problems
|
|
|
|
|
#### Built-in Webview version 2 (large size, only used in enterprise version of the system or can not install webview2)
|
|
|
|
|
<a href="https://github.com/coolcoala/clash-verge-rev-lite/releases/download/v${{ env.VERSION }}/Clash.Verge.Rev.Lite_${{ env.VERSION }}_x64_fixed_webview2-setup.exe"><img src="https://badgen.net/badge/icon/x64?icon=windows&label=exe"></a><br>
|
|
|
|
|
<a href="https://github.com/coolcoala/clash-verge-rev-lite/releases/download/v${{ env.VERSION }}/Clash.Verge.Rev.Lite_${{ env.VERSION }}_arm64_fixed_webview2-setup.exe"><img src="https://badgen.net/badge/icon/arm64?icon=windows&label=exe"></a>
|
|
|
|
|
|
|
|
|
|
Created at ${{ env.BUILDTIME }}.
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
- name: Upload Release
|
|
|
|
|
uses: softprops/action-gh-release@v2
|
|
|
|
|
with:
|
|
|
|
|
tag_name: v${{env.VERSION}}
|
|
|
|
|
name: "Clash Verge Rev Lite v${{env.VERSION}}"
|
|
|
|
|
body_path: release.txt
|
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|