Fix version number
This commit is contained in:
parent
3e72fb0eea
commit
0279b1136e
3
.github/workflows/Build-WeChatFerry.yml
vendored
3
.github/workflows/Build-WeChatFerry.yml
vendored
@ -15,8 +15,9 @@ jobs:
|
||||
|
||||
- name: 获取版本号和微信版本号
|
||||
run: |
|
||||
$version = (Select-String -Path "WeChatFerry/spy/spy.rc" -Pattern 'VALUE "FileVersion", "(.*)"').Matches.Groups[1].Value.Trim()
|
||||
$version_full = (Select-String -Path "WeChatFerry/spy/spy.rc" -Pattern 'VALUE "FileVersion", "(.*)"').Matches.Groups[1].Value.Trim()
|
||||
$wechat_version = (Select-String -Path "WeChatFerry/spy/spy.rc" -Pattern 'VALUE "ProductVersion", "(.*)"').Matches.Groups[1].Value.Trim()
|
||||
$version = $version_full -replace '(\d+\.\d+\.\d+)\.\d+', '$1'
|
||||
echo "version=$version" >> $env:GITHUB_ENV
|
||||
echo "wechat_version=$wechat_version" >> $env:GITHUB_ENV
|
||||
echo "Program Version: $version"
|
||||
|
Loading…
Reference in New Issue
Block a user