2020-07-27 17:31:08 +08:00
|
|
|
cask "mplab-xc8" do
|
|
|
|
version "2.20"
|
|
|
|
sha256 "e7471560a327b8ea573f4b7d9fdcd8faa504adce5a0d93242c18d85a121b6984"
|
2020-05-30 22:02:04 +08:00
|
|
|
|
|
|
|
url "https://ww1.microchip.com/downloads/en/DeviceDoc/xc8-v#{version}-full-install-macos-installer.dmg"
|
2020-07-27 17:31:08 +08:00
|
|
|
appcast "https://macupdater.net/cgi-bin/check_urls/check_url_redirect.cgi?url=https://www.microchip.com/mplabxc8osx"
|
|
|
|
name "MPLab XC8 Compiler"
|
|
|
|
homepage "https://www.microchip.com/mplab/compilers"
|
2020-05-30 22:02:04 +08:00
|
|
|
|
|
|
|
installer script: {
|
2020-07-27 17:31:08 +08:00
|
|
|
executable: "xc8-v#{version}-full-install-macos-x64-installer.app/Contents/MacOS/installbuilder.sh",
|
|
|
|
args: [
|
|
|
|
"--mode", "unattended",
|
|
|
|
"--unattendedmodeui", "none",
|
|
|
|
"--ModifyAll", "0",
|
|
|
|
"--netservername", '""',
|
|
|
|
"--LicenseType", "FreeMode",
|
|
|
|
"--prefix", staged_path.to_s
|
|
|
|
],
|
|
|
|
input: ["y"],
|
|
|
|
sudo: true,
|
|
|
|
}
|
2020-05-30 22:02:04 +08:00
|
|
|
binary "#{staged_path}/bin/xc-ccov"
|
|
|
|
binary "#{staged_path}/bin/xc8"
|
|
|
|
binary "#{staged_path}/bin/xc8-ar"
|
|
|
|
binary "#{staged_path}/bin/xc8-cc"
|
|
|
|
binary "#{staged_path}/bin/xclm"
|
|
|
|
|
|
|
|
postflight do
|
|
|
|
set_ownership staged_path.to_s
|
|
|
|
end
|
|
|
|
|
|
|
|
uninstall script: {
|
2020-07-27 17:31:08 +08:00
|
|
|
executable: "Uninstall-xc8-v#{version}.app/Contents/MacOS/installbuilder.sh",
|
|
|
|
args: ["--mode", "unattended"],
|
|
|
|
sudo: true,
|
|
|
|
}
|
2020-05-30 22:02:04 +08:00
|
|
|
end
|