From c4f2c94c02cdaa491d05fc6b25440aee6346acc6 Mon Sep 17 00:00:00 2001 From: Jivan Pal Date: Tue, 13 Apr 2021 19:05:18 +0100 Subject: [PATCH] Windscribe 2 (#103769) * windscribe: Update script to handle Windscribe v2 * Changes made by `brew style --fix` * Update windscribe.rb Co-authored-by: Miccal Matthews --- Casks/windscribe.rb | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/Casks/windscribe.rb b/Casks/windscribe.rb index 326298aacbf5..2bb7c7d9460c 100644 --- a/Casks/windscribe.rb +++ b/Casks/windscribe.rb @@ -1,5 +1,5 @@ cask "windscribe" do - version "1.83.1.25" + version "2.02.10" sha256 :no_check url "https://assets.windscribe.com/desktop/mac/Windscribe.dmg" @@ -7,11 +7,35 @@ desc "VPN client for secure internet access and private browsing" homepage "https://windscribe.com/" - app "Windscribe.app" + livecheck do + url "https://windscribe.com/changelog/mac" + strategy :page_match + regex(/Windscribe\.dmg">\s*v(\d+(?:\.\d+)*)/i) + end + + installer manual: "WindscribeInstaller.app" + + uninstall launchctl: [ + "com.windscribe.helper.macos", + "com.windscribe.launcher.macos", + ], + quit: [ + "com.windscribe.gui.macos", + "com.windscribe.helper.macos", + "com.windscribe.launcher.macos", + ], + delete: [ + "/Applications/Windscribe.app", + "/Library/PrivilegedHelperTools/com.windscribe.helper.macos", + "/Library/LaunchDaemons/com.windscribe.helper.macos.plist", + "/private/var/run/windscribe_helper_socket2", + "/usr/local/bin/windscribe-cli", + ] zap trash: [ "~/Library/Application Support/Windscribe", - "~/Library/Saved Application State/com.aaa.windscribe.windscribe.savedState", - "~/Library/Preferences/com.windscribe.Windscribe.plist", + "~/Library/Preferences/com.windscribe.Windscribe2.plist", + "~/Library/Preferences/com.aaa.windscribe.windscribe.plist", + "~/Library/Saved Application State/com.windscribe.gui.macos.savedState", ] end