2222 -name :检出代码
2323uses :actions/checkout@v4
2424
25+ -name :下载编译产物
26+ uses :actions/download-artifact@v4
27+ with :
28+ name :wechatferry-binaries
29+ path :tmp
30+
2531 -name :获取版本号和微信版本号
2632shell :pwsh
2733run :|
@@ -36,29 +42,15 @@ jobs:
3642 -name :打包输出文件及下载 WeChat 安装包
3743shell :pwsh
3844run :|
39- # 在根目录创建 tmp
40- New-Item -ItemType Directory -Force -Path tmp
41-
42- # Release 版的 spy.dll 和 sdk.dll
43- $rel = "WeChatFerry/WeChatFerry/x64/Release"
44- # Debug 版的 spy_debug.dll
45- $dbg = "WeChatFerry/WeChatFerry/x64/Debug"
46- # 项目根的 DISCLAIMER.md
47- $md = "WeChatFerry/WeChatFerry/DISCLAIMER.md"
48-
4945 Compress-Archive `
50- -Path "$rel/spy.dll","$rel/sdk.dll","$dbg/spy_debug.dll",$md `
46+ -Path "tmp/*" `
5147 -DestinationPath "tmp/v${{ env.version }}.zip"
5248
5349 # 下载对应版本微信安装包
5450 Invoke-WebRequest `
5551 -Uri "https://github.com/tom-snow/wechat-windows-versions/releases/download/v${{ env.wechat_version }}/WeChatSetup-${{ env.wechat_version }}.exe" `
5652 -OutFile "tmp/WeChatSetup-${{ env.wechat_version }}.exe"
5753
58- -name :列出待发布文件
59- shell :pwsh
60- run :Get-ChildItem -Path tmp -Recurse
61-
6254 -name :发布到 GitHub Releases
6355uses :ncipollo/release-action@main
6456with :