Compare commits

...

5 Commits

Author SHA1 Message Date
A lucky guy
8ca39fe989
Update destVersionRelease.sh 2023-06-12 16:07:11 +08:00
A lucky guy
4a5304a1a4
Update README.md 2023-06-12 16:06:50 +08:00
A lucky guy
d6a25d4b0d
关闭通知(不知道为啥之前的会报错了,暂时不修,没什么用)
特别感谢“亮亮”请我喝的一杯奶茶
2023-04-06 17:16:12 +08:00
A lucky guy
eaab123c66
修复微信作妖把以前标识版本的文件删了后无法获得版本号的问题(+修复自己粗心导致的问题)
张小聋没🐎
2023-02-21 16:20:20 +08:00
A lucky guy
0a3722549f
修复微信作妖把以前标识版本的文件删了后无法获得版本号的问题
孬贪微信
2023-02-21 16:16:21 +08:00
3 changed files with 14 additions and 6 deletions

View File

@ -15,4 +15,5 @@ jobs:
GHTOKEN: ${{ secrets.GHTOKEN }}
BOTTOKEN: ${{ secrets.BOTTOKEN }}
CHATIDS: ${{ secrets.CHATIDS }}
run: bash -x ./scripts/notify.sh
# run: bash -x ./scripts/notify.sh
run: echo "暂时弃用通知"

View File

@ -1,7 +1,9 @@
# wechat-windows-versions
收集 Windows 微信版本并保存
相关项目: [Mac微信收集](https://github.com/zsbai/wechat-versions)
相关项目:
* [Mac微信收集](https://github.com/zsbai/wechat-versions)
* [WindowsX86 版本收集(目前仅含23年6月12日后的)](https://github.com/tom-snow/wechat-windows-versions-x86)
## 目录结构
```shell

View File

@ -28,7 +28,7 @@ function login_gh() {
printf "#%.0s" {1..60}
echo
if [ -z $GHTOKEN ]; then
>&2 echo -e "\033[1;31mMissing Github Token! Please get a BotToken from 'Github Settings->Developer settings->Personal access tokens' and set it in Repo Secrect\033[0m"
>&2 echo -e "\033[1;31mMissing Github Token! Please get a GHToken from 'Github Settings->Developer settings->Personal access tokens' and set it in Repo Secrect\033[0m"
exit 1
fi
@ -62,10 +62,15 @@ function extract_version() {
printf "#%.0s" {1..60}
echo
local outfile=`7z l ${temp_path}/WeChatSetup.exe | grep improve.xml | awk 'NR ==1 { print $NF }'`
# old version
#local outfile=`7z l ${temp_path}/WeChatSetup.exe | grep improve.xml | awk 'NR ==1 { print $NF }'`
## 7z x ${temp_path}/WeChatSetup.exe -o${temp_path}/temp "\$R5/Tencent/WeChat/improve.xml"
7z x ${temp_path}/WeChatSetup.exe -o${temp_path}/temp $outfile
dest_version=`awk '/MinVersion/{ print $2 }' ${temp_path}/temp/$outfile | sed -e 's/^.*="//g' -e 's/".*$//g'`
#7z x ${temp_path}/WeChatSetup.exe -o${temp_path}/temp $outfile
# dest_version=`awk '/MinVersion/{ print $2 }' ${temp_path}/temp/$outfile | sed -e 's/^.*="//g' -e 's/".*$//g'`
# new version
7z x ${temp_path}/WeChatSetup.exe -o${temp_path}/temp
dest_version=`ls -l ${temp_path}/temp | awk '{print $9}' | grep '^\[[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\]$' | sed -e 's/^\[//g' -e 's/\]$//g'`
}