mirror of
https://github.com/Felitendo/spotifast.git
synced 2026-11-01 17:33:26 +01:00
Publish canonical AUR, Homebrew and native package names while retaining existing application identities and updater-compatible archives. Announce the AUR move in packaging-only revisions of the old packages. Keep 0.8.0 application bytes unchanged. Cover both release filename sets in checksums and validate native Linux package replacement against pinned old-package fixtures.
33 lines
1.2 KiB
Plaintext
33 lines
1.2 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.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
|