3 sha256 "2f64efd6e56f98e7471d67379b313250b6331f616e75affb7e1e8f9e7aec2cec"
5 url "https://dr-download.ti.com/software-development/software-programming-tool/MD-QeJBJLj8gq/#{version.major_minor_patch}/uniflash_sl.#{version}.dmg"
7 desc "Flash tool for microcontrollers"
8 homepage "https://www.ti.com/tool/UNIFLASH"
12 regex(/href=.*?uniflash_sl\.(\d+(?:\.\d+)+)\.dmg/i)
16 executable: "uniflash_sl.#{version}.app/Contents/MacOS/installbuilder.sh",
17 args: ["--mode", "unattended", "--prefix", "/Applications/TI/UniFlash"],
19 # shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
20 shimscript = "#{staged_path}/dslite"
24 File.write shimscript, <<~EOS
26 exec '/Applications/TI/UniFlash/dslite.sh' "$@"
31 executable: "/Applications/TI/UniFlash/uninstall.app/Contents/MacOS/installbuilder.sh",
32 args: ["--mode", "unattended"],
38 "~/Library/Application Support/Uniflash",
39 "~/Library/Caches/Uniflash",