homebrew-cask/Casks/obs.rb

28 lines
1.3 KiB
Ruby

cask 'obs' do
version '21.0.2'
sha256 'f2b7369a16b42fd8e73345c964a2b68130d55478bd5adb1dc207fb2d90b99b7d'
# github.com/jp9000/obs-studio was verified as official when first introduced to the cask
url "https://github.com/jp9000/obs-studio/releases/download/#{version}/obs-mac-#{version}-installer.pkg"
appcast 'https://github.com/jp9000/obs-studio/releases.atom',
checkpoint: '66148fae44e816f788ade0d4d40bc60ffbd6bf89abf756a3a1541c93fb864d63'
name 'OBS'
homepage 'https://obsproject.com/'
pkg "obs-mac-#{version}-installer.pkg"
uninstall pkgutil: [
'org.obsproject.pkg.obs-studio',
'zakk.lol.SyphonInject',
]
zap trash: [
'/Library/Application Support/obs-studio',
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.obsproject.obs-studio.sfl*',
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/zakk.lol.syphoninject.sfl*',
'~/Library/Application Support/obs-studio',
'/private/var/db/receipts/zakk.lol.SyphonInject.bom',
'/private/var/db/receipts/zakk.lol.SyphonInject.plist',
]
end