homebrew-cask/Casks/postgres.rb

29 lines
1.2 KiB
Ruby

cask 'postgres' do
version '2.1.4'
sha256 'f035d6df7dbc99988c8f418888657b0f7a09c3654f7a692ca47c42e9ffb047bc'
# github.com/PostgresApp/PostgresApp was verified as official when first introduced to the cask
url "https://github.com/PostgresApp/PostgresApp/releases/download/v#{version}/Postgres-#{version}.dmg"
appcast 'https://github.com/PostgresApp/PostgresApp/releases.atom',
checkpoint: 'f713d7de4a5ea404e869daefe965f564b37f059bbcb80ec91cd68a58fc527d0b'
name 'Postgres'
homepage 'https://postgresapp.com/'
auto_updates true
app 'Postgres.app'
uninstall launchctl: "com.postgresapp.Postgres#{version.major}LoginHelper",
quit: [
"com.postgresapp.Postgres#{version.major}",
"com.postgresapp.Postgres#{version.major}MenuHelper",
]
zap trash: [
'~/Library/Application Support/Postgres',
"~/Library/Caches/com.postgresapp.Postgres#{version.major}",
"~/Library/Cookies/com.postgresapp.Postgres#{version.major}.binarycookies",
"~/Library/Preferences/com.postgresapp.Postgres#{version.major}.plist",
]
end