cask "ace-studio" do arch arm: "arm64", intel: "x86_64" version "1.9.12,1228" sha256 arm: "cfbe76a147984c8115639984eaeb73452003ad0e367572911d40f9ffdb900f0d", intel: "667782c2a0375ca52a8e02f8a863396357d4651987322ed761e9ae002a630024" url "https://as-api-ws-cdn-1.tdacestudio.com/web/app/ACE_Studio_#{version.csv.first}_#{version.csv.second}_#{arch}_general.dmg", verified: "as-api-ws-cdn-1.tdacestudio.com/web/app/" name "ACE Studio" desc "AI Singing Voice Generator" homepage "https://acestudio.ai/versions" livecheck do url "https://as-api.tdacestudio.com/api/as/web/app/v2/previous?cl=general" regex(/ACE[._-]Studio[._-]v?(\d+(?:[._]\d+)+)[._-]#{arch}[._-]general\.dmg/i) strategy :json do |json, regex| json.dig("data", "resources")&.map do |resource| match = resource["resource_url"]&.match(regex) next if match.blank? match[1].tr("_", ",") end end end no_autobump! because: :requires_manual_review depends_on macos: ">= :mojave" app "ACE Studio.app" zap trash: [ "/Library/Audio/Plug-Ins/Components/ACE Bridge*.component", "/Library/Audio/Plug-Ins/VST3/ACE Bridge*.vst3", "~/ACE_Studio", "~/Library/Application Support/ACE Studio", "~/Library/Caches/com.juce.locks/acestudiovst", ] end