Compare commits

..

1 Commits

Author SHA1 Message Date
niusmallnan
55e5418bd0 Support darwin arm64 binary [CI SKIP] 2022-08-10 10:45:56 +08:00

View File

@@ -4,7 +4,7 @@ set -e
source $(dirname $0)/version
OS_ARCH_ARG_LINUX="amd64 arm arm64"
OS_ARCH_ARG_DARWIN="amd64"
OS_ARCH_ARG_DARWIN="amd64 arm64"
LD_INJECT_VALUES="-X github.com/rancher/steve/pkg/version.Version=$VERSION
-X github.com/rancher/steve/pkg/version.GitCommit=$COMMIT"
@@ -40,7 +40,9 @@ else
fi
for f in $(ls ./bin/); do
upx -o $DAPPER_SOURCE/bin/$f bin/$f || true
if [[ $f != *darwin-arm64 ]]; then
upx -o $DAPPER_SOURCE/bin/$f bin/$f || true
fi
if [ -f $DAPPER_SOURCE/bin/$f ]; then
echo "UPX done!"
else