3 sha256 "508b65fe484ba01fce0e12f42e4758a61ce47e0e1fcf5991611942464bb0a055"
5 url "https://github.com/macadmins/nudge/releases/download/v#{version}/Nudge-#{version}.pkg"
7 desc "Application for enforcing OS updates"
8 homepage "https://github.com/macadmins/nudge"
12 strategy :github_latest
15 depends_on macos: ">= :monterey"
17 pkg "Nudge-#{version}.pkg"
18 # shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
19 shimscript = "#{staged_path}/nudge.wrapper.sh"
20 binary shimscript, target: "nudge"
23 File.write shimscript, <<~EOS
25 exec '/Applications/Utilities/Nudge.app/Contents/MacOS/Nudge' "$@"
29 uninstall pkgutil: "com.github.macadmins.Nudge"
31 zap trash: "~/Library/Preferences/com.github.macadmins.Nudge.plist"
34 Launchctl integration must be installed separately. For the download, see
36 https://github.com/macadmins/nudge/releases/latest