Merge pull request #198799 from Homebrew/bump-huly-0.6.411
[Homebrew/homebrew-cask.git] / Casks / n / native-access.rb
blobcbc91ac70668bf0988bc79720a595f2e700f10b9
1 cask "native-access" do
2   arch arm: "arm64", intel: "x64"
3   folder = on_arch_conditional arm: "arm64/"
5   version "3.16.0"
6   sha256 :no_check
8   url "https://na-update.native-instruments.com/#{folder}Native-Access-#{arch}-mac.zip"
9   name "Native Access"
10   desc "Administration tool for Native Instruments products"
11   homepage "https://www.native-instruments.com/en/specials/native-access-2/"
13   livecheck do
14     url "https://na-update.native-instruments.com/#{folder}latest-mac.yml"
15     strategy :electron_builder
16   end
18   auto_updates true
19   depends_on macos: ">= :monterey"
21   app "Native Access.app"
23   uninstall launchctl: "com.native-instruments.NativeAccess.Helper2",
24             quit:      "com.native-instruments.Native Access",
25             delete:    [
26               "/Library/Application Support/Native Instruments",
27               "/Library/Preferences/com.native-instruments.NTKDaemon.plist",
28               "/Library/PrivilegedHelperTools/com.native-instruments.NativeAccess.Helper2",
29             ]
31   zap trash: [
32     "~/Library/Application Support/CrashReporter/Native Access_*.plist",
33     "~/Library/Application Support/Native Access",
34     "~/Library/Application Support/Native Instruments",
35     "~/Library/Caches/Native Instruments/Native Access*",
36     "~/Library/Preferences/com.native-instruments.*.plist",
37     "~/Library/Saved Application State/com.native-instruments.nativeaccess2.savedState",
38   ]
39 end