homebrew-cask/Casks/subutaicontrolcenter.rb

24 lines
884 B
Ruby

cask 'subutaicontrolcenter' do
version '7.1.1'
sha256 '8613d1fb3237ec27ecb28d8a050aab91ccf18a381113ea5eefe9338444a336cb'
# cdn.subutai.io:8338/kurjun/rest/raw was verified as official when first introduced to the cask
url 'https://cdn.subutai.io:8338/kurjun/rest/raw/get?name=subutai-control-center.pkg'
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('get'), staged_path.join('subutai-control-center.pkg')]
end
uninstall pkgutil: 'com.Subutai.Control.Center',
delete: '/Applications/SubutaiControlCenter.app'
end