Skip to content

Commit

Permalink
Merge pull request #2771 from xvzf/fix/disable-upx-arm64
Browse files Browse the repository at this point in the history
fix: disable upx for linux/arm64
  • Loading branch information
FabianKramm authored Dec 12, 2023
2 parents 79fa51d + c47b4cf commit a722e45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hack/build-all.bash
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ upx "${DEVSPACE_ROOT}/release/devspacehelper" #compress devspacehelper
shasum -a 256 "${DEVSPACE_ROOT}/release/devspacehelper" > "${DEVSPACE_ROOT}/release/devspacehelper".sha256

GOARCH=arm64 GOOS=linux go build -ldflags "-s -w -X github.com/loft-sh/devspace/helper/cmd.version=${VERSION}" -o "${DEVSPACE_ROOT}/release/devspacehelper-arm64" helper/main.go
upx "${DEVSPACE_ROOT}/release/devspacehelper-arm64" #compress devspacehelper
# FIXME: this is not working for any number of arguments/flags
# upx "${DEVSPACE_ROOT}/release/devspacehelper-arm64" #compress devspacehelper
shasum -a 256 "${DEVSPACE_ROOT}/release/devspacehelper-arm64" > "${DEVSPACE_ROOT}/release/devspacehelper-arm64".sha256

# build bin data
Expand Down

0 comments on commit a722e45

Please sign in to comment.