Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wd-security 2.1.2.144 (new cask) #174386

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions Casks/w/wd-security.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
cask "wd-security" do
version "2.1.2.144"
sha256 :no_check

url "https://downloads.wdc.com/wdapp/WD_Security_MACOS.zip",
verified: "downloads.wdc.com/wdapp/"
name "WD Security"
desc "Lock and unlock Western Digital external drives with hardware encryption"
homepage "https://support-en.wd.com/app/answers/detailweb/a_id/50696"

livecheck do
url "https://support-en.wd.com/app/answers/detailweb/a_id/29490"
regex(/Version:?\s*(\d+(?:\.\d+)+)/i)
end

container nested: "WD Security Installer.dmg"

installer script: {
# replicating #{staged_path}/installer.sh
executable: "#{staged_path}/exec/WD Security Installer.app/Contents/MacOS/WD Security Installer",
args: ["-install", "-silent"],
sudo: true,
}
bevanjkay marked this conversation as resolved.
Show resolved Hide resolved

uninstall launchctl: "com.wdc.WDPrivilegedHelper",
script: {
# replicating #{staged_path}/installer.sh
executable: "#{staged_path}/exec/WD Security Installer.app/Contents/MacOS/WD Security Installer",
args: ["-uninstall", "-silent"],
sudo: true,
},
delete: [
"/Library/LaunchDaemons/com.wdc.WDPrivilegedHelper.plist",
"/Library/PrivilegedHelperTools/com.wdc.WDPrivilegedHelper",
]

zap trash: "~/Library/Preferences/com.wdc.branded.security.plist"

caveats do
requires_rosetta
end
end
bevanjkay marked this conversation as resolved.
Show resolved Hide resolved
Loading