Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to enable/disable upx compression #359

Merged
merged 1 commit into from
Jul 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions packages/toolchain/luet/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ env:
- PATH=$PATH:/usr/local/go/bin
- GOPATH=/luetbuild/go
- GO111MODULE=off
- LDFLAGS="-s -w"
prelude:
{{ if .Values.distribution }}
{{if eq .Values.distribution "opensuse" }}
- zypper in -y git upx
- zypper in -y git {{- if .Values.upx -}} upx {{- end }}
{{else if eq .Values.distribution "fedora" }}
- dnf install -y git upx
- dnf install -y git {{- if .Values.upx -}} upx {{- end }}
{{else if eq .Values.distribution "ubuntu" }}
- apt-get install -y git upx
- apt-get install -y git {{- if .Values.upx -}} upx {{- end }}
{{end}}
{{end}}
- |
Expand All @@ -27,6 +28,6 @@ prelude:
steps:
- |
PACKAGE_VERSION=${PACKAGE_VERSION%\+*} && \
cd /luetbuild/go/src/github.com/mudler/luet && make build-small && mv luet /usr/bin/luet
cd /luetbuild/go/src/github.com/mudler/luet && make build {{- if .Values.upx -}} && upx luet {{- end }} && mv luet /usr/bin/luet
includes:
- /usr/bin/luet
3 changes: 2 additions & 1 deletion packages/toolchain/luet/definition.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
category: "toolchain"
name: "luet"
version: 0.16.7+4
version: 0.16.7+5
branch: ""
upx: false
labels:
github.repo: "luet"
github.owner: "mudler"
Expand Down