/
code-composer-studio.rb
33 lines (28 loc) 路 1.11 KB
/
code-composer-studio.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
cask "code-composer-studio" do
version "12.7.0.00007"
sha256 "09e02654e651b432a073ac2e0b7a444eb4c6dcbd0968cdc1104fa7f03f1492f1"
url "https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-J1VdearkvK/#{version.major_minor_patch}/ccs_installer_osx_#{version}.dmg"
name "Code Composer Studio (CCS)"
desc "Integrated development environment"
homepage "https://www.ti.com/tool/CCSTUDIO"
livecheck do
url :homepage
regex(/href=.*?ccs[._-]installer[._-]osx[._-]v?(\d+(?:\.\d+)+)\.dmg/i)
end
installer script: {
executable: "ccs_setup_#{version}.app/Contents/MacOS/installbuilder.sh",
args: ["--mode", "unattended", "--prefix", "/Applications/TI"],
}
uninstall script: {
executable: "/Applications/TI/ccs/uninstall_ccs.app/Contents/MacOS/installbuilder.sh",
args: ["--mode", "unattended"],
sudo: true,
}
zap trash: [
"/Applications/TI",
"~/Library/Preferences/org.eclipse.platform.ide.plist",
"~/Library/Saved Application State/org.eclipse.platform.ide.savedState",
"~/ti",
"~/workspace_v#{version.major}",
]
end