修正自动构建

This commit is contained in:
lkhsss
2025-08-26 12:32:49 +08:00
parent 968df4133b
commit 26a682513c

View File

@ -132,8 +132,10 @@ jobs:
dist_dir=`pwd`/dist
name=$bin-$version-$target
executable=target/$target/release/$bin
if [[ "$RUNNER_OS" == "Windows" || "$RUNNER_OS" == "Linux" ]]; then
if [[ "$RUNNER_OS" == "Windows" ]]; then
upx --ultra-brute $executable.exe
elif [["$RUNNER_OS" == "Linux"]]; then
upx --ultra-brute $executable
fi
if [[ "$RUNNER_OS" == "Windows" ]]; then
executable=$executable.exe