From 4531d738a7fd7c95e78a8e3254b5b768a55b2392 Mon Sep 17 00:00:00 2001 From: miccal Date: Thu, 25 Apr 2024 08:16:45 +0800 Subject: [PATCH 1/3] mplab-xc32 4.40 --- Casks/m/mplab-xc32.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Casks/m/mplab-xc32.rb b/Casks/m/mplab-xc32.rb index 4e9ba731d00f..4c1d183891a1 100644 --- a/Casks/m/mplab-xc32.rb +++ b/Casks/m/mplab-xc32.rb @@ -1,6 +1,6 @@ cask "mplab-xc32" do - version "4.35" - sha256 "f4664a269b873ae72572924fb5525979fa60a399c1d6ecc8fc196833013b79c2" + version "4.40" + sha256 "4463c2c7e191121dfbb103f40dc9ddbe1ef930fecd1d1bc12a574600e8ee4264" url "https://ww1.microchip.com/downloads/aemDocuments/documents/DEV/ProductDocuments/SoftwareTools/xc32-v#{version}-full-install-osx-installer.dmg" name "MPLab XC32 Compiler" From 5c55a3b40998ea046bd6b19965d889a6a31570ea Mon Sep 17 00:00:00 2001 From: Miccal Matthews Date: Thu, 25 Apr 2024 08:18:40 +0800 Subject: [PATCH 2/3] Update mplab-xc32.rb --- Casks/m/mplab-xc32.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Casks/m/mplab-xc32.rb b/Casks/m/mplab-xc32.rb index 4c1d183891a1..f9651fab0882 100644 --- a/Casks/m/mplab-xc32.rb +++ b/Casks/m/mplab-xc32.rb @@ -1,4 +1,5 @@ cask "mplab-xc32" do + # NOTE: "32" is not a version number, but an intrinsic part of the product name version "4.40" sha256 "4463c2c7e191121dfbb103f40dc9ddbe1ef930fecd1d1bc12a574600e8ee4264" @@ -9,7 +10,7 @@ livecheck do url "https://www.microchip.com/en-us/tools-resources/develop/mplab-xc-compilers/xc32" - regex(%r{href=.*?ProductDocuments/SoftwareTools/xc32[._-]v?(\d+(?:\.\d+)+)-full-install-osx-installer\.dmg}i) + regex(%r{href=.*?SoftwareTools/xc32[._-]v?(\d+(?:\.\d+)+)[._-]full[._-]install[._-]osx[._-]installer\.dmg}i) end installer script: { @@ -54,4 +55,6 @@ args: ["--mode", "unattended"], sudo: true, } + + # No zap stanza required end From 35952e24b3f4e5befab9d601d0a25582565f784f Mon Sep 17 00:00:00 2001 From: Justin Krehel <39449589+krehel@users.noreply.github.com> Date: Fri, 3 May 2024 20:00:06 -0400 Subject: [PATCH 3/3] mplab-xc32: add `x86_64` arch requirement Signed-off-by: Justin Krehel <39449589+krehel@users.noreply.github.com> --- Casks/m/mplab-xc32.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Casks/m/mplab-xc32.rb b/Casks/m/mplab-xc32.rb index f9651fab0882..9bcc983a0701 100644 --- a/Casks/m/mplab-xc32.rb +++ b/Casks/m/mplab-xc32.rb @@ -13,6 +13,8 @@ regex(%r{href=.*?SoftwareTools/xc32[._-]v?(\d+(?:\.\d+)+)[._-]full[._-]install[._-]osx[._-]installer\.dmg}i) end + depends_on arch: :x86_64 + installer script: { executable: "xc32-v#{version}-osx-installer.app/Contents/MacOS/installbuilder.sh", args: [