Skip to content

Commit 3b28efd

Browse files
authored
Merge pull request #48 from Team-MostWanted/feature/Add-UPX
Added UPX to Makefile and Github Actions
2 parents 34f1531 + 7daa02d commit 3b28efd

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

.github/workflows/actions.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
id: getversion
2323
run: echo "version=$(make version)" >> $GITHUB_OUTPUT
2424

25+
- name: Install UPX
26+
run: sudo apt-get update && sudo apt-get install -y upx
27+
2528
- name: Build tar files
2629
run: make dist
2730

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) with the minor change that we use a prefix instead of grouping.
55
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.20.0] - 2025-04-14
8+
- Security: dependency and security updates
9+
- Added: UPX compression
10+
711
## [1.19.0] - 2025-04-10
812
- Security: dependency and security updates
913

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ dist-create:
104104
for target in $(TARGETS); do \
105105
os=$$(echo $$target | cut -d/ -f1); \
106106
arch=$$(echo $$target | cut -d/ -f2); \
107+
upx --best $(BUILD_DIR)/$(APPNAME)-$(VERSION)-$$os-$$arch/*; \
107108
tar -C $(BUILD_DIR) -cvzf $(DIST_DIR)/$(APPNAME)-$(VERSION)-$$os-$$arch.tar.gz $(APPNAME)-$(VERSION)-$$os-$$arch; \
108109
done; \
109110
fi

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require (
1818
github.com/kr/text v0.2.0 // indirect
1919
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
2020
github.com/pmezard/go-difflib v1.0.0 // indirect
21-
github.com/prometheus/client_model v0.6.1 // indirect
21+
github.com/prometheus/client_model v0.6.2 // indirect
2222
github.com/prometheus/common v0.63.0 // indirect
2323
github.com/prometheus/procfs v0.16.0 // indirect
2424
golang.org/x/sys v0.32.0 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
2626
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
2727
github.com/prometheus/client_golang v1.22.0 h1:rb93p9lokFEsctTys46VnV1kLCDpVZ0a/Y92Vm0Zc6Q=
2828
github.com/prometheus/client_golang v1.22.0/go.mod h1:R7ljNsLXhuQXYZYtw6GAE9AZg8Y7vEW5scdCXrWRXC0=
29-
github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E=
30-
github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY=
29+
github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNwqPLxwZyk=
30+
github.com/prometheus/client_model v0.6.2/go.mod h1:y3m2F6Gdpfy6Ut/GBsUqTWZqCUvMVzSfMLjcu6wAwpE=
3131
github.com/prometheus/common v0.63.0 h1:YR/EIY1o3mEFP/kZCD7iDMnLPlGyuU2Gb3HIcXnA98k=
3232
github.com/prometheus/common v0.63.0/go.mod h1:VVFF/fBIoToEnWRVkYoXEkq3R3paCoxG9PXP74SnV18=
3333
github.com/prometheus/procfs v0.16.0 h1:xh6oHhKwnOJKMYiYBDWmkHqQPyiY40sny36Cmx2bbsM=

0 commit comments

Comments
 (0)