2 arch arm: "arm64", intel: "x64"
5 sha256 arm: "9b29f89dcaf844f5e4ca4172fc495f15775875b97994139675f4a39daffcaa46",
6 intel: "5b49c76f65f660343f149530ef447a90ec44641edaf567827048fe1895191121"
8 url "https://dl.nwjs.io/v#{version}/nwjs-sdk-v#{version}-osx-#{arch}.zip"
10 desc "Call all Node.js modules directly from the DOM and Web Workers"
11 homepage "https://nwjs.io/"
13 # The upstream download page appends a UNIX epoch timestamp (in milliseconds)
14 # to the JSON URL, so we do the same (in case it affects the returned data).
16 url "https://nwjs.io/versions.json?#{DateTime.now.strftime("%Q")}"
17 regex(/^v?(\d+(?:\.\d+)+)$/i)
18 strategy :json do |json, regex|
19 match = json["stable"]&.match(regex)
26 app "nwjs-sdk-v#{version}-osx-#{arch}/nwjs.app"
27 binary "nwjs-sdk-v#{version}-osx-#{arch}/nwjc"
30 "~/Library/Application Support/nwjs",
31 "~/Library/Caches/nwjs",
32 "~/Library/Preferences/io.nwjs.nwjs.plist",
33 "~/Library/Saved Application State/io.nwjs.nwjs.savedState",