From 6d6f332e1da52be38d9f77879a34b0b7156caea4 Mon Sep 17 00:00:00 2001 From: alnasl Date: Mon, 11 Sep 2023 15:06:02 +0900 Subject: [PATCH 1/2] Add TWELITE STAGE 2022_08_30 --- Casks/t/twelite-stage.rb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Casks/t/twelite-stage.rb diff --git a/Casks/t/twelite-stage.rb b/Casks/t/twelite-stage.rb new file mode 100644 index 0000000000..32cdf25d3f --- /dev/null +++ b/Casks/t/twelite-stage.rb @@ -0,0 +1,27 @@ +cask "twelite-stage" do + version "2022_08_30" + sha256 "d848758cb89690200041ed910aacd2e7396148d86fbc30376af0e9b94a2af46f" + + url "https://mono-wireless.com/download/stage/MWSTAGE#{version}-mac.zip" + name "TWELITE STAGE SDK" + desc "Evaluation & Development tools for TWELITE wireless modules" + homepage "https://mono-wireless.com/" + + livecheck do + url "https://mono-wireless.com/jp/products/stage/Readme-j.html" + regex(/MWSTAGE(20\d{2}_(?:0[1-9]|1[0-2])_(?:0[1-9]|[12][0-9]|3[01]))/i) + strategy :page_match + end + + depends_on macos: ">= :mojave" + + # It is an SDK with a shell-based application that includes source code and other user resources. + # It is neither an "app" nor a "suite". + artifact "MWSTAGE", + target: "~/MWSTAGE" + + # Contains user resources such as source code + uninstall trash: "~/MWSTAGE" + + # No zap stanza required, all resources are in ~/MWSTAGE +end From 526863c2402c405745571a488086250693bb7709 Mon Sep 17 00:00:00 2001 From: Miccal Matthews Date: Thu, 14 Sep 2023 14:33:10 +0800 Subject: [PATCH 2/2] Update twelite-stage.rb --- Casks/t/twelite-stage.rb | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Casks/t/twelite-stage.rb b/Casks/t/twelite-stage.rb index 32cdf25d3f..471b699dbc 100644 --- a/Casks/t/twelite-stage.rb +++ b/Casks/t/twelite-stage.rb @@ -9,19 +9,15 @@ cask "twelite-stage" do livecheck do url "https://mono-wireless.com/jp/products/stage/Readme-j.html" - regex(/MWSTAGE(20\d{2}_(?:0[1-9]|1[0-2])_(?:0[1-9]|[12][0-9]|3[01]))/i) - strategy :page_match + regex(/MWSTAGEv?(\d+(?:[._]\d+)+)/i) end depends_on macos: ">= :mojave" - # It is an SDK with a shell-based application that includes source code and other user resources. + # It is an SDK with a shell-based application that + # includes source code and other user resources. # It is neither an "app" nor a "suite". - artifact "MWSTAGE", - target: "~/MWSTAGE" + artifact "MWSTAGE", target: "~/MWSTAGE" - # Contains user resources such as source code - uninstall trash: "~/MWSTAGE" - - # No zap stanza required, all resources are in ~/MWSTAGE + zap trash: "~/MWSTAGE" end