mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-19 02:39:57 +00:00
build: keep release files as before
This commit is contained in:
parent
553aceac44
commit
1170f635fd
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@ -171,11 +171,23 @@ jobs:
|
||||
# 为每个二进制文件创建 zip 包
|
||||
cd dist
|
||||
for bin in certimate_*; do
|
||||
if [[ "$bin" == *".exe" ]]; then
|
||||
zip "${bin%.exe}.zip" "${bin}"
|
||||
if [[ "$bin" == *".exe" ]]; then
|
||||
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 }}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user