homebrew-cask/Casks/subutaip2p.rb

37 lines
1.3 KiB
Ruby

cask 'subutaip2p' do
version '7.1.0'
sha256 'a55ebeb26c871d18020084c02860d7e36a613ccfc49b40c2b1f0cf31afbe4298'
# 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-p2p.pkg'
appcast 'https://github.com/subutai-io/p2p/releases.atom'
name 'Subutai P2P'
homepage 'https://subutai.io/'
auto_updates true
pkg 'subutai-p2p.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-p2p.pkg')]
end
uninstall pkgutil: [
'com.Subutai.P2P',
'net.sf.tuntaposx.tap',
'net.sf.tuntaposx.tun',
],
kext: [
'net.sf.tuntaposx.tap',
'net.sf.tuntaposx.tun',
],
launchctl: [
'io.subutai.p2p.daemon',
'net.sf.tuntaposx.tap',
'net.sf.tuntaposx.tun',
],
delete: '/Applications/SubutaiP2P.app'
end