From b384ea347a40a3c66e4cbb601da749bf7098b277 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 3 Feb 2024 18:39:01 +0800 Subject: [PATCH] upx --- upx.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 upx.sh diff --git a/upx.sh b/upx.sh new file mode 100644 index 00000000..32736832 --- /dev/null +++ b/upx.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# a warpper for "post-run" build scripts +# see also https://github.com/rust-lang/cargo/issues/545 + +command $* +status_code="$?" +find ./target/ \( -name hitdns -or -name hitdns.exe \) -exec upx '{}' \; +exit "$status_code" +