From 071ed7c2b8a94e47aebb0b50d32ccc6712bb4f2d Mon Sep 17 00:00:00 2001 From: Sam Bostock Date: Sun, 5 Mar 2023 16:09:22 -0500 Subject: [PATCH] Add `obs-advanced-scene-switcher` cask (#139807) * [WIP] Add obs-advanced-scene-switcher cask This adds a cask for https://obsproject.com/forum/resources/advanced-scene-switcher.395 It's currently blocked by figuring out how to get the plugin into the correct directory. See code comments. * Update obs-advanced-scene-switcher.rb * Update obs-advanced-scene-switcher.rb --------- Co-authored-by: Miccal Matthews --- Casks/obs-advanced-scene-switcher.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Casks/obs-advanced-scene-switcher.rb diff --git a/Casks/obs-advanced-scene-switcher.rb b/Casks/obs-advanced-scene-switcher.rb new file mode 100644 index 0000000000000..0fe8ce0344b25 --- /dev/null +++ b/Casks/obs-advanced-scene-switcher.rb @@ -0,0 +1,21 @@ +cask "obs-advanced-scene-switcher" do + arch arm: "arm64", intel: "x86_64" + + version "1.20.5" + sha256 arm: "086227b8c7a4fbbcbe16bc7926bbaeaf43a93777afffe1193114349ab0c7fe5c", + intel: "1ba88b767c436d4ecff1a6ecb84461028724fa4cc6eb57c031d2f4fffcf4050d" + + url "https://github.com/WarmUpTill/SceneSwitcher/releases/download/#{version}/advanced-scene-switcher-macos-#{arch}.pkg", + verified: "github.com/WarmUpTill/SceneSwitcher/" + name "OBS Advanced Scene Switcher" + desc "Automated scene switcher for OBS Studio" + homepage "https://obsproject.com/forum/resources/advanced-scene-switcher.395" + + depends_on cask: "obs" + + pkg "advanced-scene-switcher-macos-#{arch}.pkg" + + uninstall pkgutil: "com.warmuptill.advanced-scene-switcher", + delete: "/Library/Application Support/obs-studio/plugins/advanced-scene-switcher.plugin", + rmdir: "/Library/Application Support/obs-studio/plugins" +end