Beispiel #1
0
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)
Beispiel #2
0
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
    )
Beispiel #3
0
def InstallSkype(passw):
    print("Installing Skype...")

    if not util.check_command_exists('brew'):
        dependencies.InstallHomebrew(passw)

    util.install_app(
        'skype',
        passw,
        #   ext_verbose=True
    )
Beispiel #4
0
def InstallGIMP(passw):
    print("Installing GIMP...")

    if not util.check_command_exists('brew'):
        dependencies.InstallHomebrew(passw)

    util.install_app(
        'gimp',
        passw,
        #   ext_verbose=True
    )
Beispiel #5
0
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
    )
Beispiel #6
0
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
    )
Beispiel #7
0
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
    )
Beispiel #8
0
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,
                     )
Beispiel #9
0
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'])
Beispiel #10
0
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,
                     )