Skip to content

Commit

Permalink
fix(autok3s): skip compress darwin arm64 binary
Browse files Browse the repository at this point in the history
  • Loading branch information
orangedeng authored and JacieChao committed May 26, 2022
1 parent ba4e016 commit fd10894
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hack/lib/upx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ function autok3s::upx::run() {
fi

autok3s::log::info "compressing binaries"
upx ${ROOT_DIR}/dist/autok3s_*
for file in `ls ${ROOT_DIR}/dist`; do
if [[ "$file" == "autok3s_darwin_arm64" ]]; then
autok3s::log::info "darwin arm64 binary doesn't work well with upx, skipping compressing this binary."
continue
fi
upx -1 ${ROOT_DIR}/dist/$file;
done
}

0 comments on commit fd10894

Please sign in to comment.