From 1fd166d5c795c50f4f200716b4170c8d3affdca6 Mon Sep 17 00:00:00 2001 From: binwiederhier Date: Thu, 12 Jan 2023 10:28:00 -0500 Subject: [PATCH] Remove upx step from builds --- .goreleaser.yml | 7 ------- docs/releases.md | 3 ++- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 39642ba4..9ba8bb49 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -13,9 +13,6 @@ builds: - "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}" goos: [linux] goarch: [amd64] - hooks: - post: - - upx "{{ .Path }}" # apt install upx - id: ntfy_linux_armv6 binary: ntfy @@ -28,7 +25,6 @@ builds: goos: [linux] goarch: [arm] goarm: [6] - # No "upx" for ARM, see https://github.com/binwiederhier/ntfy/issues/191#issuecomment-1083406546 - id: ntfy_linux_armv7 binary: ntfy @@ -41,7 +37,6 @@ builds: goos: [linux] goarch: [arm] goarm: [7] - # No "upx" for ARM, see https://github.com/binwiederhier/ntfy/issues/191#issuecomment-1083406546 - id: ntfy_linux_arm64 binary: ntfy @@ -53,7 +48,6 @@ builds: - "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}" goos: [linux] goarch: [arm64] - # No "upx" for ARM, see https://github.com/binwiederhier/ntfy/issues/191#issuecomment-1083406546 - id: ntfy_windows_amd64 binary: ntfy @@ -64,7 +58,6 @@ builds: - "-X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}" goos: [windows] goarch: [amd64] - # No "upx" for Windows to hopefully avoid Virus warnings - id: ntfy_darwin_all binary: ntfy diff --git a/docs/releases.md b/docs/releases.md index c1c78a6b..ad513f45 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -9,9 +9,10 @@ and the [ntfy Android app](https://github.com/binwiederhier/ntfy-android/release * Preliminary `/v1/health` API endpoint for service monitoring (no ticket) * Add basic health check to `Dockerfile` ([#555](https://github.com/binwiederhier/ntfy/pull/555), thanks to [@bt90](https://github.com/bt90)) -**Bug fixes:** +**Bug fixes + maintenance:** * Fix `chown` issues with RHEL-like based systems ([#566](https://github.com/binwiederhier/ntfy/issues/566)/[#565](https://github.com/binwiederhier/ntfy/pull/565), thanks to [@danieldemus](https://github.com/danieldemus)) +* Removed `upx` (binary packing) for all builds due to false virus warnings ([#576](https://github.com/binwiederhier/ntfy/issues/576), thanks to [@shawnhwei](https://github.com/shawnhwei) for reporting) **Documentation:**