Skip to content

Commit

Permalink
loopback: split into ARK & ACE versions
Browse files Browse the repository at this point in the history
  • Loading branch information
unitof committed Jun 22, 2024
1 parent c00e37c commit 5bcbfb8
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions Casks/l/loopback.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,38 @@
cask "loopback" do
version "2.4.0"
sha256 :no_check

url "https://rogueamoeba.com/loopback/download/Loopback.zip"
macosversion_no_dots = "145"
audio_engine = "ark"

on_ventura :or_older do
# macOS 11.0 is oldest supported version
macosversion_no_dots = "110"
audio_engine = "ace"

version "2.3.3"

depends_on macos: ">= :big_sur"
end
on_sonoma :or_newer do
version "2.4.0"

depends_on macos: ">= :sonoma"

# NOTE: see https://weblog.rogueamoeba.com/2024/06/07/now-you-can-install-loopback-in-under-one-minute/#fn1-2024-06-loopback
caveats "Loopback 2.4.0 requires macOS 14.5 or newer."
end

url "https://rogueamoeba.com/loopback/download-#{audio_engine}.php"
name "Loopback"
desc "Cable-free audio router"
homepage "https://rogueamoeba.com/loopback/"

# NOTE: The `system` value will need to be kept up to date with the latest
# macOS version (e.g. 1441 for 14.4.1).
livecheck do
url "https://rogueamoeba.net/ping/versionCheck.cgi?format=sparkle&system=145&bundleid=com.rogueamoeba.Loopback&platform=osx&version=#{version.no_dots}8000"
url "https://rogueamoeba.net/ping/versionCheck.cgi?format=sparkle&system=#{macosversion_no_dots}&bundleid=com.rogueamoeba.Loopback&platform=osx&version=#{version.no_dots}8000"
strategy :sparkle
end

auto_updates true
depends_on macos: ">= :big_sur"

app "Loopback.app"

Expand All @@ -27,9 +44,10 @@

zap trash: [
"~/Library/Application Support/Loopback",
"~/Library/Caches/com.rogueamoeba.loop*",
"~/Library/HTTPStorages/com.rogueamoeba.loop*",
"~/Library/Preferences/com.rogueamoeba.loop*.plist",
"~/Library/Caches/com.rogueamoeba.Loopback",
"~/Library/HTTPStorages/com.rogueamoeba.[Ll]oopback*",
"~/Library/Preferences/com.rogueamoeba.[Ll]oopback*.plist",
"~/Library/Saved Application State/com.rogueamoeba.Loopback.savedState",
"~/Library/WebKit/com.rogueamoeba.Loopback",
]
end

0 comments on commit 5bcbfb8

Please sign in to comment.