def InstallGolang(passw): print("Installing Golang...") brewname = 'go' if not util.check_command_exists('brew'): dependencies.InstallHomebrew(passw) util.install_app(brewname, passw, cask=False, # ext_verbose=True, ) # adding enviroment variables to .bash_profile install_dir = util.ext_call(['brew', '--prefix', brewname], getstdout=True).strip(' \t\n') util.add_env_var({'GOPATH': ['${HOME}', '.go']}) util.add_env_var({'GOROOT': [install_dir, 'libexec']}, force=True) util.append_to_path(['${GOPATH}', 'bin'], ['${GOROOT}', 'bin'], force=True)
def InstallChrome(passw): print("Installing Chrome...") if not util.check_command_exists('brew'): dependencies.InstallHomebrew(passw) util.install_app( 'google-chrome', passw, # ext_verbose=True )
def InstallSkype(passw): print("Installing Skype...") if not util.check_command_exists('brew'): dependencies.InstallHomebrew(passw) util.install_app( 'skype', passw, # ext_verbose=True )
def InstallGIMP(passw): print("Installing GIMP...") if not util.check_command_exists('brew'): dependencies.InstallHomebrew(passw) util.install_app( 'gimp', passw, # ext_verbose=True )
def InstallRocketChat(passw): print("Installing Rocket Chat...") if not util.check_command_exists('brew'): dependencies.InstallHomebrew(passw) util.install_app( 'rocket-chat', passw, # ext_verbose=True )
def InstallLibreOffice(passw): print("Installing Libre Office...") if not util.check_command_exists('brew'): dependencies.InstallHomebrew(passw) util.install_app( 'libreoffice', passw, # ext_verbose=True )
def InstallVSCode(passw): print("Installing Visual Studio Code...") if not util.check_command_exists('brew'): dependencies.InstallHomebrew(passw) util.install_app( 'visual-studio-code', passw, # ext_verbose=True )
def InstallScons(passw): print("Installing Scons...") brewname = 'scons' if not util.check_command_exists('brew'): dependencies.InstallHomebrew(passw) util.install_app(brewname, passw, cask=False, # ext_verbose=True, )
def InstallPython3(passw): print("Installing Python3...") brewname = 'python3' if not util.check_command_exists('brew'): dependencies.InstallHomebrew(passw) util.install_app(brewname, passw, cask=False, # ext_verbose=True, ) util.append_to_path(['/', 'usr', 'local', 'lib', 'python3.7', 'site-packages'])
def InstallARMGCC(passw): print("Installing ARM GCC (arm-none-eabi-gcc)...") brewname = 'arm-none-eabi-gcc' brewtap = 'ARMmbed/homebrew-formulae' if not util.check_command_exists('brew'): dependencies.InstallHomebrew(passw) util.install_app(brewname, passw, cask=False, tap=brewtap, # ext_verbose=True, )