1 cask "native-access" do
2 arch arm: "arm64", intel: "x64"
3 folder = on_arch_conditional arm: "arm64/"
8 url "https://na-update.native-instruments.com/#{folder}Native-Access-#{arch}-mac.zip"
10 desc "Administration tool for Native Instruments products"
11 homepage "https://www.native-instruments.com/en/specials/native-access-2/"
14 url "https://na-update.native-instruments.com/#{folder}latest-mac.yml"
15 strategy :electron_builder
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",
26 "/Library/Application Support/Native Instruments",
27 "/Library/Preferences/com.native-instruments.NTKDaemon.plist",
28 "/Library/PrivilegedHelperTools/com.native-instruments.NativeAccess.Helper2",
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",