homebrew-cask/Casks/subutaicontrolcenter.rb

23 lines
795 B
Ruby

cask 'subutaicontrolcenter' do
version '7.3.2'
sha256 '646138e650cb348679db8516c616d340f0a464412143170b01915995f05c6c7d'
url 'https://bazaar.subutai.io/rest/v1/cdn/raw?name=subutai-control-center.pkg&latest&download'
appcast 'https://github.com/subutai-io/control-center/releases.atom'
name 'Subutai Control Center'
homepage 'https://subutai.io/'
auto_updates true
pkg 'subutai-control-center.pkg'
# This is a horrible hack to force the file extension.
# The backend code should be fixed so that this is not needed.
preflight do
system_command '/bin/mv', args: ['--', staged_path.join('raw'), staged_path.join('subutai-control-center.pkg')]
end
uninstall pkgutil: 'com.Subutai.Control.Center',
delete: '/Applications/SubutaiControlCenter.app'
end