5 url "https://downloads.wdc.com/wdapp/WD_Security_MACOS.zip",
6 verified: "downloads.wdc.com/wdapp/"
8 desc "Lock and unlock Western Digital external drives with hardware encryption"
9 homepage "https://support-en.wd.com/app/answers/detailweb/a_id/50696"
12 url "https://support-en.wd.com/app/answers/detailweb/a_id/29490"
13 regex(/Version:?\s*(\d+(?:\.\d+)+)/i)
16 container nested: "WD Security Installer.dmg"
19 # replicating #{staged_path}/installer.sh
20 executable: "#{staged_path}/exec/WD Security Installer.app/Contents/MacOS/WD Security Installer",
21 args: ["-install", "-silent"],
25 uninstall launchctl: "com.wdc.WDPrivilegedHelper",
27 # replicating #{staged_path}/installer.sh
28 executable: "#{staged_path}/exec/WD Security Installer.app/Contents/MacOS/WD Security Installer",
29 args: ["-uninstall", "-silent"],
33 "/Library/LaunchDaemons/com.wdc.WDPrivilegedHelper.plist",
34 "/Library/PrivilegedHelperTools/com.wdc.WDPrivilegedHelper",
37 zap trash: "~/Library/Preferences/com.wdc.branded.security.plist"