From fe5690ecb9a444aa5ee8bf97833a95a49670a265 Mon Sep 17 00:00:00 2001 From: BingoKingo <24961267+BingoKingo@users.noreply.github.com> Date: Tue, 24 Oct 2023 01:41:01 +0800 Subject: [PATCH 1/3] commandpost: new cask https://github.com/CommandPost/CommandPost/discussions/3257 --- Casks/c/commandpost.rb | 59 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Casks/c/commandpost.rb diff --git a/Casks/c/commandpost.rb b/Casks/c/commandpost.rb new file mode 100644 index 0000000000..26797d918e --- /dev/null +++ b/Casks/c/commandpost.rb @@ -0,0 +1,59 @@ +cask "commandpost" do + on_mojave :or_older do + version "1.2.16" + sha256 "a874240a9c37a77da47c7e3c33342f3cc4d415d3bb146bee4b49b0776e8e08a8" + + url "https://github.com/CommandPost/CommandPost/releases/download/#{version}/CommandPost_#{version}.dmg", + verified: "github.com/CommandPost/CommandPost/" + livecheck do + skip "Legacy version" + end + end + on_catalina do + version "1.4.13" + sha256 "dd0ddbf94722174760c82870f537b299ce0b1b6265875aa558d515df4338a816" + + url "https://github.com/CommandPost/CommandPost/releases/download/#{version}/CommandPost_#{version}.dmg", + verified: "github.com/CommandPost/CommandPost/" + livecheck do + skip "Legacy version" + end + end + on_big_sur :or_newer do + version "1.4.22" + sha256 "9115107751cda2cf605a513da378fb0dcc40d57fe7dfbd76f664420946f9f773" + + url "https://github.com/CommandPost/CommandPost/releases/download/#{version}/CommandPost_#{version}.dmg", + verified: "github.com/CommandPost/CommandPost/" + livecheck do + url :url + strategy :github_latest + end + end + + name "CommandPost" + desc "Hammerspoon Fork for Creative Workflow Enhancements" + homepage "https://commandpost.io/" + + auto_updates true + depends_on macos: ">= :sierra" + + app "CommandPost.app" + binary "#{appdir}/CommandPost.app/Contents/Frameworks/hs/cmdpost" + + uninstall login_item: "CommandPost", + quit: "org.latenitefilms.CommandPost" + + zap trash: [ + "~/Library/Application Support/CommandPost", + "~/Library/Application Support/org.latenitefilms.CommandPost", + "~/Library/Caches/com.apple.nsurlsessiond/Downloads/org.latenitefilms.CommandPost", + "~/Library/Caches/com.crashlytics.data/org.latenitefilms.CommandPost", + "~/Library/Caches/io.fabric.sdk.mac.data/org.latenitefilms.CommandPost", + "~/Library/Caches/org.latenitefilms.CommandPost", + "~/Library/HTTPStorages/org.latenitefilms.CommandPost", + "~/Library/Preferences/org.latenitefilms.CommandPost.plist", + "~/Library/Saved Application State/org.latenitefilms.CommandPost.savedState", + "~/Library/WebKit/org.latenitefilms.CommandPost", + ] +end From c126fd4a0cd3db900f5e6dcf4b977318d3a73825 Mon Sep 17 00:00:00 2001 From: Justin Krehel <39449589+krehel@users.noreply.github.com> Date: Mon, 23 Oct 2023 14:46:29 -0400 Subject: [PATCH 2/3] commandpost: cleanup --- Casks/c/commandpost.rb | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Casks/c/commandpost.rb b/Casks/c/commandpost.rb index 26797d918e..d523e63338 100644 --- a/Casks/c/commandpost.rb +++ b/Casks/c/commandpost.rb @@ -3,8 +3,6 @@ cask "commandpost" do version "1.2.16" sha256 "a874240a9c37a77da47c7e3c33342f3cc4d415d3bb146bee4b49b0776e8e08a8" - url "https://github.com/CommandPost/CommandPost/releases/download/#{version}/CommandPost_#{version}.dmg", - verified: "github.com/CommandPost/CommandPost/" livecheck do skip "Legacy version" end @@ -13,8 +11,6 @@ cask "commandpost" do version "1.4.13" sha256 "dd0ddbf94722174760c82870f537b299ce0b1b6265875aa558d515df4338a816" - url "https://github.com/CommandPost/CommandPost/releases/download/#{version}/CommandPost_#{version}.dmg", - verified: "github.com/CommandPost/CommandPost/" livecheck do skip "Legacy version" end @@ -22,17 +18,12 @@ cask "commandpost" do on_big_sur :or_newer do version "1.4.22" sha256 "9115107751cda2cf605a513da378fb0dcc40d57fe7dfbd76f664420946f9f773" - - url "https://github.com/CommandPost/CommandPost/releases/download/#{version}/CommandPost_#{version}.dmg", - verified: "github.com/CommandPost/CommandPost/" - livecheck do - url :url - strategy :github_latest - end end + url "https://github.com/CommandPost/CommandPost/releases/download/#{version}/CommandPost_#{version}.dmg", + verified: "github.com/CommandPost/CommandPost/" name "CommandPost" - desc "Hammerspoon Fork for Creative Workflow Enhancements" + desc "Workflow Enhancements for Creatives" homepage "https://commandpost.io/" auto_updates true From 6373b4b57437c1f92affea87d48f199e928cb6a6 Mon Sep 17 00:00:00 2001 From: Miccal Matthews Date: Tue, 24 Oct 2023 07:41:29 +0800 Subject: [PATCH 3/3] Update commandpost.rb --- Casks/c/commandpost.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Casks/c/commandpost.rb b/Casks/c/commandpost.rb index d523e63338..04e248b5ba 100644 --- a/Casks/c/commandpost.rb +++ b/Casks/c/commandpost.rb @@ -23,7 +23,7 @@ cask "commandpost" do url "https://github.com/CommandPost/CommandPost/releases/download/#{version}/CommandPost_#{version}.dmg", verified: "github.com/CommandPost/CommandPost/" name "CommandPost" - desc "Workflow Enhancements for Creatives" + desc "Workflow enhancements for Final Cut Pro" homepage "https://commandpost.io/" auto_updates true