build: keep release files as before

This commit is contained in:
Fu Diwei 2025-06-10 21:10:27 +08:00
parent 553aceac44
commit 1170f635fd

View File

@ -172,10 +172,22 @@ jobs:
cd dist
for bin in certimate_*; do
if [[ "$bin" == *".exe" ]]; then
zip "${bin%.exe}.zip" "${bin}"
entrypoint="certimate.exe"
else
zip -X "${bin}.zip" "${bin}"
entrypoint="certimate"
fi
tmpdir=$(mktemp -d)
cp "$bin" "${tmpdir}/${entrypoint}"
cp ../README.md ../LICENSE.md ../CHANGELOG.md "$tmpdir"
if [[ "$bin" == *".exe" ]]; then
zip -j "${bin%.exe}.zip" "$tmpdir"/*
else
zip -j -X "${bin}.zip" "$tmpdir"/*
fi
rm -rf "$tmpdir"
done
# 创建校验和文件
@ -190,4 +202,3 @@ jobs:
draft: true
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}