コード例 #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)
コード例 #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
    )
コード例 #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
    )
コード例 #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
    )
コード例 #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
    )
コード例 #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
    )
コード例 #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
    )
コード例 #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,
                     )
コード例 #9
0
def UninstallHomebrew(passw):
    print("Uninstalling Homebrew...")

    if not util.check_command_exists('brew'):
        return
    if not util.check_path_exists(util.GIT):
        InstallXCodeCmdDevTools(passw)

    script = util.ext_call([
        'curl', '-fsSL',
        'https://raw.githubusercontent.com/Homebrew/install/master/uninstall'
    ],
                           getstdout=True,
                           sudopass=passw)
    util.ext_call(['echo', '-ne', '\'\n\''], ['/usr/bin/ruby', '-e', script])
コード例 #10
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'])
コード例 #11
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,
                     )