mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-19 19:00:00 +00:00
build: keep release files as before
This commit is contained in:
parent
553aceac44
commit
1170f635fd
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
@ -172,10 +172,22 @@ jobs:
|
|||||||
cd dist
|
cd dist
|
||||||
for bin in certimate_*; do
|
for bin in certimate_*; do
|
||||||
if [[ "$bin" == *".exe" ]]; then
|
if [[ "$bin" == *".exe" ]]; then
|
||||||
zip "${bin%.exe}.zip" "${bin}"
|
entrypoint="certimate.exe"
|
||||||
else
|
else
|
||||||
zip -X "${bin}.zip" "${bin}"
|
entrypoint="certimate"
|
||||||
fi
|
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
|
done
|
||||||
|
|
||||||
# 创建校验和文件
|
# 创建校验和文件
|
||||||
@ -190,4 +202,3 @@ jobs:
|
|||||||
draft: true
|
draft: true
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user