diff --git a/Formula/u/upx.rb b/Formula/u/upx.rb index 499372e1668d9..a46b3f0272c04 100644 --- a/Formula/u/upx.rb +++ b/Formula/u/upx.rb @@ -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" @@ -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 @@ -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