Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3e47e04

Browse files
committed
chore(ci): fix build and release
1 parentfa893d0 commit3e47e04

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

‎.github/workflows/build-ci.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,11 @@ jobs:
7676
/verbosity:minimal
7777
}
7878
shell:pwsh
79+
80+
-name:上传
81+
uses:actions/upload-artifact@v4
82+
with:
83+
name:wechatferry-binaries
84+
path:|
85+
WeChatFerry/WeChatFerry/Out/*.dll
86+
WeChatFerry/WeChatFerry/Out/*.md

‎.github/workflows/release.yml‎

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222
-name:检出代码
2323
uses:actions/checkout@v4
2424

25+
-name:下载编译产物
26+
uses:actions/download-artifact@v4
27+
with:
28+
name:wechatferry-binaries
29+
path:tmp
30+
2531
-name:获取版本号和微信版本号
2632
shell:pwsh
2733
run:|
@@ -36,29 +42,15 @@ jobs:
3642
-name:打包输出文件及下载 WeChat 安装包
3743
shell:pwsh
3844
run:|
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
6355
uses:ncipollo/release-action@main
6456
with:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp