From 45dc9286459fcfab4ca646c55a7470c4a032df17 Mon Sep 17 00:00:00 2001 From: lkhsss Date: Tue, 26 Aug 2025 13:40:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=87=AA=E5=8A=A8=E6=9E=84?= =?UTF-8?q?=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1d1c329..07329f8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -132,12 +132,16 @@ jobs: dist_dir=`pwd`/dist name=$bin-$version-$target executable=target/$target/release/$bin - if [[ "$RUNNER_OS" == "Windows" ]]; then + + + if [[ "$RUNNER_OS" == "Windows" && matrix.upx == "true" ]]; then upx --ultra-brute $executable.exe elif [["$RUNNER_OS" == "Linux" && matrix.upx == "true" ]]; then upx --ultra-brute $executable fi - if [[ "$RUNNER_OS" == "Windows" && matrix.upx == "true" ]]; then + + + if [[ "$RUNNER_OS" == "Windows" ]]; then executable=$executable.exe fi mkdir $dist_dir