From 26a682513ca2f396347d6a23fca4ddf4d618d289 Mon Sep 17 00:00:00 2001 From: lkhsss Date: Tue, 26 Aug 2025 12:32:49 +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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 15824be..76e1202 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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