homebrew-cask/Casks/obs.rb

28 lines
1.3 KiB
Ruby

cask 'obs' do
version '21.0.3'
sha256 '16c4f71a965b7f3d0dc04a58a64c49192aad455ce8fc971b0d253babfdefbafc'
# 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: '11a5b29ea1a3e7ce3f03dbadb0ccfbcb3a29ee8359226f15dc96b2bf303e94d7'
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