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" +