30 lines
647 B
Ruby
30 lines
647 B
Ruby
cask "mbed-studio" do
|
|
version "1.4.6"
|
|
sha256 :no_check
|
|
|
|
url "https://studio.mbed.com/installers/latest/mac/MbedStudio.pkg"
|
|
name "Mbed Studio"
|
|
desc "IDE for Mbed OS application and library development"
|
|
homepage "https://os.mbed.com/studio/"
|
|
|
|
livecheck do
|
|
url :url
|
|
strategy :header_match
|
|
end
|
|
|
|
pkg "MbedStudio.pkg"
|
|
|
|
preflight do
|
|
staged_path.glob("MbedStudio-*.pkg").first.rename("#{staged_path}/MbedStudio.pkg")
|
|
end
|
|
|
|
uninstall pkgutil: "com.arm.mbed.studio"
|
|
|
|
zap trash: [
|
|
"~/.mbed-library-cache",
|
|
"~/.mbed-library-pipeline",
|
|
"~/.mbed-studio",
|
|
"~/Library/Application Support/Mbed Studio",
|
|
]
|
|
end
|