From b27ffbb0ffb92160958cc6c5657702cc4bbc76c7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 11 Nov 2026 04:54:56 +0000 Subject: [PATCH] Update Homebrew distribution to v1.0.95 --- Casks/modernize.rb | 17 +++++++++++++++++ Formula/modernize.rb | 27 +++++++++------------------ 2 files changed, 26 insertions(+), 18 deletions(-) create mode 100644 Casks/modernize.rb diff --git a/Casks/modernize.rb b/Casks/modernize.rb new file mode 100644 index 0000000..4e9606a --- /dev/null +++ b/Casks/modernize.rb @@ -0,0 +1,17 @@ +cask "modernize" do + arch arm: "arm64", intel: "x64" + + version "1.0.95" + sha256 arm: "3a24c4ce1b0a0eae291c8e818388c966e5fc9b5fb05e17e5d091a6577e821608", + intel: "a9f3a510d184b2c3760d873df0013a67564535dab9396e52e6c7a7ccd7969b5d" + + url "https://github.com/microsoft/modernize-cli/releases/download/v#{version}/modernize_#{version}_darwin_#{arch}.tar.gz" + name "Modernize" + desc "AI-powered CLI for application modernization" + homepage "https://github.com/microsoft/modernize-cli" + + depends_on formula: "gh" + depends_on :macos + + binary "modernize" +end diff --git a/Formula/modernize.rb b/Formula/modernize.rb index 4dbe9fe..0f5cc5b 100644 --- a/Formula/modernize.rb +++ b/Formula/modernize.rb @@ -1,27 +1,18 @@ class Modernize < Formula desc "AI-powered CLI for application modernization" homepage "https://github.com/microsoft/modernize-cli" - version "1.0.93" + version "1.0.95" - if OS.mac? - if Hardware::CPU.intel? - url "https://github.com/microsoft/modernize-cli/releases/download/v1.0.93/modernize_1.0.93_darwin_x64.tar.gz" - sha256 "82e913a282dcfde15d30011c54bf93b2b0369a929cf88485c51b75f9d40575f7" - elsif Hardware::CPU.arm? - url "https://github.com/microsoft/modernize-cli/releases/download/v1.0.93/modernize_1.0.93_darwin_arm64.tar.gz" - sha256 "7282e0cb4350e74410a7c5a7d2956d4cedbe119ef9fbfa4cafa48857d3e20c96" - end - elsif OS.linux? - if Hardware::CPU.intel? - url "https://github.com/microsoft/modernize-cli/releases/download/v1.0.93/modernize_1.0.93_linux_x64.tar.gz" - sha256 "5ad247208b98b937a772ecec3bb0aa1bb35bda45d63eebf6f0b6e4e2f3105236" - elsif Hardware::CPU.arm? - url "https://github.com/microsoft/modernize-cli/releases/download/v1.0.93/modernize_1.0.93_linux_arm64.tar.gz" - sha256 "8b401854da923d28c0db99a5ffbf82b8cc541de1c210dc0a8da5a7e86f877001" - end + if Hardware::CPU.intel? + url "https://github.com/microsoft/modernize-cli/releases/download/v1.0.95/modernize_1.0.95_linux_x64.tar.gz" + sha256 "18e14c2a206d8b69af9d140cef200802e9e4fbd68330fb86141d4e9425a7c3f3" + elsif Hardware::CPU.arm? + url "https://github.com/microsoft/modernize-cli/releases/download/v1.0.95/modernize_1.0.95_linux_arm64.tar.gz" + sha256 "a587b272375f4c51ebf740e88400f486ce938abdfdc270c1dea1a1b2328b3ffc" end license "Proprietary" + depends_on :linux depends_on "gh" def install @@ -33,7 +24,7 @@ def install test do version_output = shell_output "#{bin}/modernize --version" assert_equal 0, $CHILD_STATUS.exitstatus - assert_match "modernize", version_output + assert_match version.to_s, version_output end end