Files
spotifast/packaging/homebrew/spotifast.rb.in
T

35 lines
1.3 KiB
Plaintext

cask "spotifast" do
version "@VERSION@"
sha256 "@MACOS_SHA256@"
url "https://github.com/crmne/spotifast/releases/download/v#{version}/spotifast-v#{version}-macos-universal.dmg"
name "Spotifast"
desc "Native Spotify client"
homepage "https://spotifast.rocks"
livecheck do
url :url
strategy :github_latest
end
# Historical releases and the pinned packaging fixture still use the old name.
bundle_name = ::Version.new(version) <= ::Version.new("0.7.1") ? "Fastpotify.app" : "Spotifast.app"
app bundle_name
zap trash: [
"~/Library/Application Support/me.paolino.spotifast",
"~/Library/Caches/me.paolino.spotifast",
"~/Library/Application Support/me.paolino.fastpotify",
"~/Library/Caches/me.paolino.fastpotify",
]
caveats <<~EOS if ::Version.new(version) <= ::Version.new("0.7.1")
This build is not notarized yet, so macOS blocks the first launch.
Either clear the quarantine flag:
find /Applications/#{bundle_name} -exec xattr -d com.apple.quarantine {} \; 2>/dev/null
or open it once through System Settings, Privacy & Security: double-click
the app, click Done, then scroll to the Security section and click
"Open Anyway" next to the #{bundle_name.delete_suffix(".app")} message. macOS remembers the choice.
EOS
end