From 9c796dced4404c92b5cf4cca04fbbf87b8a4c032 Mon Sep 17 00:00:00 2001 From: altf4arnold Date: Sun, 3 Dec 2023 02:15:50 +0100 Subject: [PATCH 1/9] cardo-update --- Casks/c/cardo-update.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Casks/c/cardo-update.rb diff --git a/Casks/c/cardo-update.rb b/Casks/c/cardo-update.rb new file mode 100644 index 0000000000..33c5876dd0 --- /dev/null +++ b/Casks/c/cardo-update.rb @@ -0,0 +1,17 @@ +cask 'cardo-update' do + version :latest + sha256 : "261dcca0337d5a97230290267f8285a9a7b02b87f59ab7336c3b1a04fd6f1a1f" + + url 'https://update.cardosystems.com/cardo-app/cardo_updater_macOS_latest.pkg' + name 'Cardo Update - firmware update tool for PACKTALK and FREECOM unit lines' + homepage 'https://www.cardosystems.com/download-cardo-updater/' + + pkg 'cardo_updater_macOS_latest.pkg' + + uninstall quit: 'com.cardo.fwupdater', + pkgutil: 'com.cardo.fwupdater' + + zap rmdir: [ + '~/Library/Application Support/Cardo Update', + ] +end From f7fc797e0ab0d3714e5858ca227ef6a84fd736f8 Mon Sep 17 00:00:00 2001 From: altf4arnold Date: Sun, 3 Dec 2023 02:26:57 +0100 Subject: [PATCH 2/9] cardo-repair --- Casks/c/cardo-update.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Casks/c/cardo-update.rb b/Casks/c/cardo-update.rb index 33c5876dd0..2f604c5948 100644 --- a/Casks/c/cardo-update.rb +++ b/Casks/c/cardo-update.rb @@ -1,6 +1,6 @@ cask 'cardo-update' do version :latest - sha256 : "261dcca0337d5a97230290267f8285a9a7b02b87f59ab7336c3b1a04fd6f1a1f" + sha256 "261dcca0337d5a97230290267f8285a9a7b02b87f59ab7336c3b1a04fd6f1a1f" url 'https://update.cardosystems.com/cardo-app/cardo_updater_macOS_latest.pkg' name 'Cardo Update - firmware update tool for PACKTALK and FREECOM unit lines' From d09cacdc6a212462cbc24a87627c5cd6565855f8 Mon Sep 17 00:00:00 2001 From: altf4arnold Date: Sun, 3 Dec 2023 02:32:38 +0100 Subject: [PATCH 3/9] linting --- Casks/c/cardo-update.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Casks/c/cardo-update.rb b/Casks/c/cardo-update.rb index 2f604c5948..2cecd88f88 100644 --- a/Casks/c/cardo-update.rb +++ b/Casks/c/cardo-update.rb @@ -1,17 +1,17 @@ -cask 'cardo-update' do +cask "cardo-update" do version :latest sha256 "261dcca0337d5a97230290267f8285a9a7b02b87f59ab7336c3b1a04fd6f1a1f" - url 'https://update.cardosystems.com/cardo-app/cardo_updater_macOS_latest.pkg' - name 'Cardo Update - firmware update tool for PACKTALK and FREECOM unit lines' - homepage 'https://www.cardosystems.com/download-cardo-updater/' + url "https://update.cardosystems.com/cardo-app/cardo_updater_macOS_latest.pkg" + name "Cardo Update - firmware update tool for PACKTALK and FREECOM unit lines" + homepage "https://www.cardosystems.com/download-cardo-updater/" - pkg 'cardo_updater_macOS_latest.pkg' + pkg "cardo_updater_macOS_latest.pkg" - uninstall quit: 'com.cardo.fwupdater', - pkgutil: 'com.cardo.fwupdater' + uninstall quit: "com.cardo.fwupdater", + pkgutil: "com.cardo.fwupdater" zap rmdir: [ - '~/Library/Application Support/Cardo Update', - ] + "~/Library/Application Support/Cardo Update", + ] end From ded76c32b47748e75ab4d9656e92196e94feacde Mon Sep 17 00:00:00 2001 From: altf4arnold Date: Sun, 3 Dec 2023 02:40:59 +0100 Subject: [PATCH 4/9] fixing CI-CD --- Casks/c/cardo-update.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Casks/c/cardo-update.rb b/Casks/c/cardo-update.rb index 2cecd88f88..bfd19ba577 100644 --- a/Casks/c/cardo-update.rb +++ b/Casks/c/cardo-update.rb @@ -4,6 +4,7 @@ cask "cardo-update" do url "https://update.cardosystems.com/cardo-app/cardo_updater_macOS_latest.pkg" name "Cardo Update - firmware update tool for PACKTALK and FREECOM unit lines" + desc "Software to update Packtalk and Freecom motorcycle intercom's" homepage "https://www.cardosystems.com/download-cardo-updater/" pkg "cardo_updater_macOS_latest.pkg" From 4e7942501bbd7f5339179ee99e56a3b4a7ca31c6 Mon Sep 17 00:00:00 2001 From: altf4arnold Date: Sun, 3 Dec 2023 02:51:52 +0100 Subject: [PATCH 5/9] complying with sha256 :no-check --- Casks/c/cardo-update.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Casks/c/cardo-update.rb b/Casks/c/cardo-update.rb index bfd19ba577..8bb7716cbe 100644 --- a/Casks/c/cardo-update.rb +++ b/Casks/c/cardo-update.rb @@ -1,6 +1,6 @@ cask "cardo-update" do version :latest - sha256 "261dcca0337d5a97230290267f8285a9a7b02b87f59ab7336c3b1a04fd6f1a1f" + sha256 :no_check url "https://update.cardosystems.com/cardo-app/cardo_updater_macOS_latest.pkg" name "Cardo Update - firmware update tool for PACKTALK and FREECOM unit lines" From 9eb771517c802123322ee79e1e7f42b83b5526fc Mon Sep 17 00:00:00 2001 From: Justin Krehel <39449589+krehel@users.noreply.github.com> Date: Sat, 2 Dec 2023 22:06:49 -0500 Subject: [PATCH 6/9] cardo-update: fixes * Update name and desc * Fix `version` * Add `livecheck` * Add `requires_rosetta` --- Casks/c/cardo-update.rb | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Casks/c/cardo-update.rb b/Casks/c/cardo-update.rb index 8bb7716cbe..0fe7438577 100644 --- a/Casks/c/cardo-update.rb +++ b/Casks/c/cardo-update.rb @@ -1,18 +1,27 @@ cask "cardo-update" do - version :latest + version "4.2.0.30204" sha256 :no_check url "https://update.cardosystems.com/cardo-app/cardo_updater_macOS_latest.pkg" - name "Cardo Update - firmware update tool for PACKTALK and FREECOM unit lines" - desc "Software to update Packtalk and Freecom motorcycle intercom's" + name "Firmware update tool for PACKTALK and FREECOM unit lines" + desc "Update Packtalk and Freecom motorcycle intercoms" homepage "https://www.cardosystems.com/download-cardo-updater/" + livecheck do + url :url + strategy :extract_plist + end + pkg "cardo_updater_macOS_latest.pkg" uninstall quit: "com.cardo.fwupdater", pkgutil: "com.cardo.fwupdater" - zap rmdir: [ + zap trash: [ "~/Library/Application Support/Cardo Update", ] + + caveats do + requires_rosetta + end end From f7f01873ef9fd800b92fefa1f1d61e3ab6421002 Mon Sep 17 00:00:00 2001 From: Justin Krehel <39449589+krehel@users.noreply.github.com> Date: Sat, 2 Dec 2023 22:15:25 -0500 Subject: [PATCH 7/9] cardo-update: add `:electron_builder` strategy --- Casks/c/cardo-update.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Casks/c/cardo-update.rb b/Casks/c/cardo-update.rb index 0fe7438577..56753824c0 100644 --- a/Casks/c/cardo-update.rb +++ b/Casks/c/cardo-update.rb @@ -1,5 +1,5 @@ cask "cardo-update" do - version "4.2.0.30204" + version "4.2.0" sha256 :no_check url "https://update.cardosystems.com/cardo-app/cardo_updater_macOS_latest.pkg" @@ -8,8 +8,8 @@ cask "cardo-update" do homepage "https://www.cardosystems.com/download-cardo-updater/" livecheck do - url :url - strategy :extract_plist + url "https://update.cardosystems.com/cardo-app/latest-mac.yml" + strategy :electron_builder end pkg "cardo_updater_macOS_latest.pkg" From 6a1aae304b14d67f85dbd3c50afb53824d870e51 Mon Sep 17 00:00:00 2001 From: Justin Krehel <39449589+krehel@users.noreply.github.com> Date: Sat, 2 Dec 2023 22:33:04 -0500 Subject: [PATCH 8/9] cardo-update: fix `name` --- Casks/c/cardo-update.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Casks/c/cardo-update.rb b/Casks/c/cardo-update.rb index 56753824c0..8ce8908d85 100644 --- a/Casks/c/cardo-update.rb +++ b/Casks/c/cardo-update.rb @@ -3,7 +3,7 @@ cask "cardo-update" do sha256 :no_check url "https://update.cardosystems.com/cardo-app/cardo_updater_macOS_latest.pkg" - name "Firmware update tool for PACKTALK and FREECOM unit lines" + name "Cardo Update" desc "Update Packtalk and Freecom motorcycle intercoms" homepage "https://www.cardosystems.com/download-cardo-updater/" From b359d00ad42ade41257fb953dcb03aba8acca8a9 Mon Sep 17 00:00:00 2001 From: Bevan Kay Date: Mon, 4 Dec 2023 09:32:01 +1100 Subject: [PATCH 9/9] Update cardo-update.rb --- Casks/c/cardo-update.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Casks/c/cardo-update.rb b/Casks/c/cardo-update.rb index 8ce8908d85..412132fecb 100644 --- a/Casks/c/cardo-update.rb +++ b/Casks/c/cardo-update.rb @@ -1,8 +1,8 @@ cask "cardo-update" do version "4.2.0" - sha256 :no_check + sha256 "4e8698968179412beae7caeb08b5c70190ba912e994d3ce42b5e1c18d67cbca3" - url "https://update.cardosystems.com/cardo-app/cardo_updater_macOS_latest.pkg" + url "https://update.cardosystems.com/cardo-app/Cardo%20Update-#{version}-mac.zip" name "Cardo Update" desc "Update Packtalk and Freecom motorcycle intercoms" homepage "https://www.cardosystems.com/download-cardo-updater/" @@ -12,13 +12,12 @@ cask "cardo-update" do strategy :electron_builder end - pkg "cardo_updater_macOS_latest.pkg" - - uninstall quit: "com.cardo.fwupdater", - pkgutil: "com.cardo.fwupdater" + app "Cardo Update.app" zap trash: [ "~/Library/Application Support/Cardo Update", + "~/Library/Logs/Cardo Update", + "~/Library/Preferences/com.cardo.fwupdater.plist", ] caveats do