Skip to content

Commit

Permalink
Merge pull request #173039 from nevack/nevack/surfshark-autoupdate-sp…
Browse files Browse the repository at this point in the history
…arkle

surfshark: update livecheck to Sparkle, set `auto_updates true`
  • Loading branch information
krehel authored May 7, 2024
2 parents e104738 + 5daaf4b commit d1b954b
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions Casks/s/surfshark.rb
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
cask "surfshark" do
version "4.14.0,2225"
sha256 :no_check
sha256 "b6d5f7730071fcfed4470ad03e32f6959d29778e564b579b11794a588dec50c0"

url "https://downloads.surfshark.com/macOS/latest/Surfshark.dmg"
url "https://downloads.surfshark.com/macOS/stable/#{version.csv.first}/#{version.csv.second}/Surfshark.dmg"
name "Surfshark"
desc "VPN client for secure internet access and private browsing"
homepage "https://surfshark.com/"

livecheck do
url :url
strategy :extract_plist
url "https://downloads.surfshark.com/macOS/stable/appcast.xml"
strategy :sparkle
end

auto_updates true
depends_on macos: ">= :catalina"

app "Surfshark.app"

zap trash: [
"~/Library/Application Scripts/com.surfshark.vpnclient.macos",
"~/Library/Application Scripts/com.surfshark.vpnclient.macos.launchAgent",
"~/Library/Application Scripts/com.surfshark.vpnclient.macos.PacktTunnel-OpenVPN",
"~/Library/Application Scripts/com.surfshark.vpnclient.macos*",
"~/Library/Application Support/CrashReporter/Surfshark.OpenVPN_*.plist",
"~/Library/Containers/com.surfshark.vpnclient.macos",
"~/Library/Containers/com.surfshark.vpnclient.macos.launchAgent",
"~/Library/Containers/com.surfshark.vpnclient.macos.PacktTunnel-OpenVPN",
"~/Library/Containers/com.surfshark.vpnclient.macos*",
"~/Library/Group Containers/YHUG37CKN8.com.surfshark.vpn",
"~/Library/Saved Application State/com.surfshark.vpnclient.macos.savedState",
]
Expand Down

0 comments on commit d1b954b

Please sign in to comment.