Skip to content

Commit

Permalink
upx 4.2.2
Browse files Browse the repository at this point in the history
- relates to [upx/upx#612](upx/upx#612)

Co-Authored-By: Rui Chen <rui@chenrui.dev>

upx (test): add `--force-macos`

- See Homebrew#160367
  • Loading branch information
osalbahr committed Jan 25, 2024
1 parent 2454758 commit 92f40dc
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Formula/u/upx.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Upx < Formula
desc "Compress/expand executable files"
homepage "https://upx.github.io/"
url "https://github.com/upx/upx/releases/download/v4.1.0/upx-4.1.0-src.tar.xz"
sha256 "0582f78b517ea87ba1caa6e8c111474f58edd167e5f01f074d7d9ca2f81d47d0"
url "https://github.com/upx/upx/releases/download/v4.2.2/upx-4.2.2-src.tar.xz"
sha256 "42ee0455eea610ef7ee732aa1f657b34a351ebcfa64a24c1e2a7aaec74c1e038"
license "GPL-2.0-or-later"
head "https://github.com/upx/upx.git", branch: "devel"

Expand All @@ -11,9 +11,6 @@ class Upx < Formula
sha256 cellar: :any_skip_relocation, big_sur: "8e6aa21f689985270ff1cc3857ef9848f63f3c79a96604884ee846ce76e6401b"
end

# https://github.com/upx/upx/issues/612
deprecate! date: "2023-10-14", because: "is crashing for macOS Ventura or above"

depends_on "cmake" => :build
depends_on "ucl" => :build

Expand All @@ -29,7 +26,7 @@ def install
cp "#{bin}/upx", "."
chmod 0755, "./upx"

system "#{bin}/upx", "-1", "--force-execve", "./upx"
system "#{bin}/upx", "-1", "--force-execve", "--force-macos", "./upx"
system "./upx", "-V" # make sure the binary we compressed works
system "#{bin}/upx", "-d", "./upx"
end
Expand Down

0 comments on commit 92f40dc

Please sign in to comment.