Skip to content

Commit b70a60b

Browse files
committed
修复构建错误 打包 pi win
1 parent 2c52d7c commit b70a60b

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/build-unified.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,18 @@ jobs:
263263
run: |
264264
echo "开始 Windows 打包操作..."
265265
266+
# 检查构建是否成功
267+
if (!(Test-Path "dist/SecRandom")) {
268+
echo "错误:dist/SecRandom 目录不存在,构建可能失败了"
269+
echo "可用的dist目录内容:"
270+
if (Test-Path "dist") {
271+
Get-ChildItem -Path "dist" -Recurse
272+
} else {
273+
echo "dist 目录不存在"
274+
}
275+
exit 1
276+
}
277+
266278
# 创建zip_dist/SecRandom目录
267279
mkdir -p zip_dist/SecRandom
268280
@@ -296,6 +308,18 @@ jobs:
296308
run: |
297309
echo "开始 Linux 打包操作..."
298310
311+
# 检查构建是否成功
312+
if [ ! -d "dist/SecRandom" ]; then
313+
echo "错误:dist/SecRandom 目录不存在,构建可能失败了"
314+
echo "可用的dist目录内容:"
315+
if [ -d "dist" ]; then
316+
ls -la dist/
317+
else
318+
echo "dist 目录不存在"
319+
fi
320+
exit 1
321+
fi
322+
299323
# 创建zip_dist/SecRandom目录
300324
mkdir -p zip_dist/SecRandom
301325

0 commit comments

Comments
 (0)