Files
homebrew-cask/Casks/t/touchosc-editor.rb
Mike McQuaid aa461148bb Move all remaining casks to sharded subdirectories.
The migration of `orka.rb` and then `o*.rb` has worked well without
complaint so: let's move everything else, too.
2023-08-09 12:08:38 +01:00

21 lines
717 B
Ruby

cask "touchosc-editor" do
version "1.8.9"
sha256 "59e9992f29569b950dfeea397814e88cea5b45b1ed7ddaa8f748774ac6db6db7"
url "https://hexler.net/pub/touchosc/touchosc-editor-#{version}-macos.zip"
name "TouchOSC Editor"
desc "Modular touch control surface editor for OSC & MIDI"
homepage "https://hexler.net/touchosc-mk1"
livecheck do
url :homepage
regex(%r{href=.*?/touchosc-editor-(\d+(?:\.\d+)*)-macos\.zip}i)
end
app "touchosc-editor-#{version}-macos/TouchOSC Editor.app"
artifact "touchosc-editor-#{version}-macos/layouts",
target: Pathname.new(File.expand_path("~")).join("Library/Application Support/TouchOSCEditor/layouts")
zap trash: "~/Library/*/*TouchOSCEditor*"
end