Update version number

This commit is contained in:
Changhua 2024-07-08 01:20:13 +08:00
parent 478bbdfdab
commit 1c376c0357

View File

@ -74,8 +74,8 @@ jobs:
- name: 打包输出文件及下载 WeChat 安装包 - name: 打包输出文件及下载 WeChat 安装包
run: | run: |
New-Item -ItemType Directory -Force -Path "WeChatFerry/tmp" New-Item -ItemType Directory -Force -Path "WeChatFerry/tmp"
Compress-Archive -Path "WeChatFerry/Out/sdk.dll", "WeChatFerry/Out/spy.dll", "WeChatFerry/Out/spy_debug.dll" -DestinationPath "WeChatFerry/tmp/WeChatFerry-${{ env.version }}.zip" Compress-Archive -Path "WeChatFerry/Out/sdk.dll", "WeChatFerry/Out/spy.dll", "WeChatFerry/Out/spy_debug.dll" -DestinationPath "WeChatFerry/tmp/v${{ env.version }}.zip"
# Compress-Archive -Path "WeChatFerry/Out/*" -DestinationPath "WeChatFerry/tmp/WeChatFerry-${{ env.version }}.zip" # Compress-Archive -Path "WeChatFerry/Out/*" -DestinationPath "WeChatFerry/tmp/v${{ env.version }}-debug.zip"
Invoke-WebRequest -Uri "https://github.com/tom-snow/wechat-windows-versions/releases/download/v${{ env.wechat_version }}/WeChatSetup-${{ env.wechat_version }}.exe" -OutFile "WeChatFerry/tmp/WeChatSetup-${{ env.wechat_version }}.exe" Invoke-WebRequest -Uri "https://github.com/tom-snow/wechat-windows-versions/releases/download/v${{ env.wechat_version }}/WeChatSetup-${{ env.wechat_version }}.exe" -OutFile "WeChatFerry/tmp/WeChatSetup-${{ env.wechat_version }}.exe"
shell: pwsh shell: pwsh
@ -86,11 +86,12 @@ jobs:
- name: 发布固件到 Github Releases - name: 发布固件到 Github Releases
uses: ncipollo/release-action@main uses: ncipollo/release-action@main
with: with:
name: WeChatFerry_v${{ env.version }} name: v${{ env.version }}
tag: v${{ env.version }} tag: v${{ env.version }}
token: ${{ secrets.REPO_TOKEN }} token: ${{ secrets.REPO_TOKEN }}
allowUpdates: true allowUpdates: true
artifacts: "WeChatFerry/tmp/*" artifacts: "WeChatFerry/tmp/*"
body: | body: |
程序版本:${{ env.version }} 程序版本:`v${{ env.version }}`
配套微信版本:${{ env.wechat_version }} 配套微信版本:`${{ env.wechat_version }}`
[📖 Python 文档](https://wechatferry.readthedocs.io/)