mirror of https://github.com/usual2970/certimate
retain executable permission
parent
e24de70c02
commit
553aceac44
|
@ -166,13 +166,15 @@ jobs:
|
||||||
cp -r artifacts/macos-binaries/* dist/
|
cp -r artifacts/macos-binaries/* dist/
|
||||||
cp -r artifacts/windows-binaries/* dist/
|
cp -r artifacts/windows-binaries/* dist/
|
||||||
|
|
||||||
|
find dist -type f -not -name "*.exe" -exec chmod +x {} \;
|
||||||
|
|
||||||
# 为每个二进制文件创建 zip 包
|
# 为每个二进制文件创建 zip 包
|
||||||
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}"
|
zip "${bin%.exe}.zip" "${bin}"
|
||||||
else
|
else
|
||||||
zip "${bin}.zip" "${bin}"
|
zip -X "${bin}.zip" "${bin}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue