diff --git a/Cargo.lock b/Cargo.lock index cea9a262..2849ae79 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1623,7 +1623,7 @@ dependencies = [ [[package]] name = "shadowsocks-rust" -version = "1.12.1" +version = "1.12.1-alpha.1" dependencies = [ "build-time", "byte_string", diff --git a/Cargo.toml b/Cargo.toml index 22618993..098a1943 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shadowsocks-rust" -version = "1.12.1" +version = "1.12.1-alpha.1" authors = ["Shadowsocks Contributors"] description = "shadowsocks is a fast tunnel proxy that helps you bypass firewalls." repository = "https://github.com/shadowsocks/shadowsocks-rust" diff --git a/build/build-release b/build/build-release index 618658f2..629398a9 100755 --- a/build/build-release +++ b/build/build-release @@ -37,7 +37,7 @@ if [[ "${#targets[@]}" == "0" ]]; then fi if [[ "${use_upx}" = true ]]; then - if [[ ! -z $upx ]] && hash upx 2>/dev/null; then + if [[ -z "$upx" ]] && command -v upx &> /dev/null; then upx="upx -9" fi