homebrew-cask/Casks/syncthing-bar.rb

26 lines
1.0 KiB
Ruby

cask 'syncthing-bar' do
version '0.0.9'
sha256 '61277e5f1efd70a98a2e574e1f1a8b40ec88c84086cb362a98f951ab05657cb9'
url "https://github.com/m0ppers/syncthing-bar/releases/download/#{version}/syncthing-bar-#{version}.pkg"
appcast 'https://github.com/m0ppers/syncthing-bar/releases.atom',
checkpoint: 'c6bd419e4755507254d735dc69ebadfd0ab342bbba0e5b61ab7edd91634da737'
name 'Syncthing bar'
homepage 'https://github.com/m0ppers/syncthing-bar'
license :oss
pkg "syncthing-bar-#{version}.pkg"
uninstall quit: 'koeln.mop.syncthing-bar',
pkgutil: 'koeln.mop.syncthing-bar',
launchctl: 'koeln.mop.syncthing-bar.agent',
delete: '/Applications/syncthing-bar.app'
zap delete: [
'~/Library/Application Support/Syncthing',
'~/Library/Caches/koeln.mop.syncthing-bar',
'~/Library/Saved Application State/koeln.mop.syncthing-bar.savedState',
'/Library/LaunchAgents/koeln.mop.syncthing-bar.agent.plist',
]
end