Beispiel #1
0
    def _build_installer():
        tmp_path = os.path.join(env.root_path, 'dist', 'client', 'windows', 'assist')
        tmp_app_path = os.path.join(tmp_path, 'apps')
        tmp_cfg_path = os.path.join(tmp_app_path, 'cfg')

        if os.path.exists(tmp_app_path):
            utils.remove(tmp_app_path)

        utils.makedirs(tmp_app_path)
        utils.makedirs(tmp_cfg_path)

        utils.copy_file(os.path.join(env.root_path, 'out', 'client', ctx.bits_path, ctx.target_path), tmp_app_path, 'tp_assist.exe')
        utils.copy_file(os.path.join(env.root_path, 'client', 'tp_assist_win', 'cfg'), tmp_cfg_path, ('tp-assist.default.json', 'tp-assist.json'))

        utils.copy_ex(os.path.join(env.root_path, 'client', 'tp_assist_win'), tmp_app_path, 'site')

        utils.makedirs(os.path.join(tmp_app_path, 'tools', 'putty'))
        utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'putty'), os.path.join(tmp_app_path, 'tools', 'putty'), 'putty.exe')

        utils.makedirs(os.path.join(tmp_app_path, 'tools', 'winscp'))
        utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'winscp'), os.path.join(tmp_app_path, 'tools', 'winscp'), 'WinSCP.exe')
        utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'winscp'), os.path.join(tmp_app_path, 'tools', 'winscp'), 'license.txt')

        utils.makedirs(os.path.join(tmp_app_path, 'tools', 'tprdp'))
        utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'tprdp'), os.path.join(tmp_app_path, 'tools', 'tprdp'), 'tprdp-client.exe')
        utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'tprdp'), os.path.join(tmp_app_path, 'tools', 'tprdp'), 'tprdp-replay.exe')
        utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'tprdp'), os.path.join(tmp_app_path, 'tools', 'tprdp'), 'libeay32.dll')
        utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'tprdp'), os.path.join(tmp_app_path, 'tools', 'tprdp'), 'ssleay32.dll')
        utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'tprdp'), os.path.join(tmp_app_path, 'tools', 'tprdp'), 'msvcr120.dll')

        utils.copy_file(os.path.join(env.root_path, 'client', 'tools'), os.path.join(tmp_app_path, 'tools'), 'securecrt-telnet.vbs')

        utils.nsis_build(os.path.join(env.root_path, 'dist', 'client', 'windows', 'assist', 'installer.nsi'))
Beispiel #2
0
    def _build_installer():
        tmp_path = os.path.join(env.root_path, 'dist', 'client', 'windows', 'assist')
        tmp_app_path = os.path.join(tmp_path, 'apps')
        tmp_cfg_path = os.path.join(tmp_app_path, 'cfg')

        if os.path.exists(tmp_app_path):
            utils.remove(tmp_app_path)

        utils.makedirs(tmp_app_path)
        utils.makedirs(tmp_cfg_path)

        utils.copy_file(os.path.join(env.root_path, 'out', 'client', ctx.bits_path, ctx.target_path), tmp_app_path, 'tp_assist.exe')
        utils.copy_file(os.path.join(env.root_path, 'client', 'cfg'), tmp_cfg_path, ('tp-assist.windows.json', 'tp-assist.json'))

        utils.copy_file(os.path.join(env.root_path, 'client', 'cfg'), tmp_cfg_path, 'cacert.cer')
        utils.copy_file(os.path.join(env.root_path, 'client', 'cfg'), tmp_cfg_path, 'localhost.key')
        utils.copy_file(os.path.join(env.root_path, 'client', 'cfg'), tmp_cfg_path, 'localhost.pem')

        utils.copy_ex(os.path.join(env.root_path, 'client', 'tp_assist_win'), tmp_app_path, 'site')

        utils.makedirs(os.path.join(tmp_app_path, 'tools', 'putty'))
        utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'putty'), os.path.join(tmp_app_path, 'tools', 'putty'), 'putty.exe')

        utils.makedirs(os.path.join(tmp_app_path, 'tools', 'winscp'))
        utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'winscp'), os.path.join(tmp_app_path, 'tools', 'winscp'), 'WinSCP.exe')
        utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'winscp'), os.path.join(tmp_app_path, 'tools', 'winscp'), 'license.txt')

        utils.makedirs(os.path.join(tmp_app_path, 'tools', 'tprdp'))
        utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'tprdp'), os.path.join(tmp_app_path, 'tools', 'tprdp'), 'tprdp-client.exe')
        utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'tprdp'), os.path.join(tmp_app_path, 'tools', 'tprdp'), 'tprdp-replay.exe')
        utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'tprdp'), os.path.join(tmp_app_path, 'tools', 'tprdp'), 'libeay32.dll')
        utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'tprdp'), os.path.join(tmp_app_path, 'tools', 'tprdp'), 'ssleay32.dll')
        utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'tprdp'), os.path.join(tmp_app_path, 'tools', 'tprdp'), 'msvcr120.dll')

        utils.copy_file(os.path.join(env.root_path, 'client', 'tools'), os.path.join(tmp_app_path, 'tools'), 'securecrt-telnet.vbs')

        utils.nsis_build(os.path.join(env.root_path, 'dist', 'client', 'windows', 'assist', 'installer.nsi'))
Beispiel #3
0
    def _build_installer():
        tmp_path = os.path.join(env.root_path, 'dist', 'client', 'windows',
                                'assist')
        tmp_app_path = os.path.join(tmp_path, 'apps')
        tmp_cfg_path = os.path.join(tmp_app_path, 'cfg')

        if os.path.exists(tmp_app_path):
            utils.remove(tmp_app_path)

        utils.makedirs(tmp_app_path)
        utils.makedirs(tmp_cfg_path)

        utils.copy_file(
            os.path.join(env.root_path, 'out', 'client', ctx.bits_path,
                         ctx.target_path), tmp_app_path, 'tp_assist.exe')
        utils.copy_file(
            os.path.join(env.root_path, 'client', 'tp_assist_win', 'runtime'),
            tmp_app_path, 'vcruntime140.dll')

        utils.copy_file(os.path.join(env.root_path, 'client',
                                     'cfg'), tmp_cfg_path,
                        ('tp-assist.windows.json', 'tp-assist.json'))
        utils.copy_file(os.path.join(env.root_path, 'client', 'cfg'),
                        tmp_cfg_path, 'cacert.cer')
        utils.copy_file(os.path.join(env.root_path, 'client', 'cfg'),
                        tmp_cfg_path, 'localhost.key')
        utils.copy_file(os.path.join(env.root_path, 'client', 'cfg'),
                        tmp_cfg_path, 'localhost.pem')

        # assist configuration web page
        utils.copy_ex(os.path.join(env.root_path, 'client', 'tp_assist_win'),
                      tmp_app_path, 'site')

        utils.makedirs(os.path.join(tmp_app_path, 'tools', 'putty'))
        utils.copy_file(
            os.path.join(env.root_path, 'client', 'tools', 'putty'),
            os.path.join(tmp_app_path, 'tools', 'putty'), 'putty.exe')

        utils.makedirs(os.path.join(tmp_app_path, 'tools', 'winscp'))
        utils.copy_file(
            os.path.join(env.root_path, 'client', 'tools', 'winscp'),
            os.path.join(tmp_app_path, 'tools', 'winscp'), 'WinSCP.exe')
        utils.copy_file(
            os.path.join(env.root_path, 'client', 'tools', 'winscp'),
            os.path.join(tmp_app_path, 'tools', 'winscp'), 'license.txt')

        utils.makedirs(os.path.join(tmp_app_path, 'tools', 'tprdp'))
        # utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'tprdp'), os.path.join(tmp_app_path, 'tools', 'tprdp'), 'tprdp-client.exe')
        # utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'tprdp'), os.path.join(tmp_app_path, 'tools', 'tprdp'), 'tprdp-replay.exe')
        # utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'tprdp'), os.path.join(tmp_app_path, 'tools', 'tprdp'), 'libeay32.dll')
        # utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'tprdp'), os.path.join(tmp_app_path, 'tools', 'tprdp'), 'ssleay32.dll')
        # utils.copy_file(os.path.join(env.root_path, 'client', 'tools', 'tprdp'), os.path.join(tmp_app_path, 'tools', 'tprdp'), 'msvcr120.dll')
        utils.copy_file(
            os.path.join(env.root_path, 'client', 'tools', 'tprdp'),
            os.path.join(tmp_app_path, 'tools', 'tprdp'), 'wfreerdp.exe')

        utils.copy_file(os.path.join(env.root_path, 'client', 'tools'),
                        os.path.join(tmp_app_path, 'tools'),
                        'securecrt-telnet.vbs')

        # tp-player
        utils.copy_file(
            os.path.join(env.root_path, 'out', 'client', ctx.bits_path,
                         ctx.target_path), tmp_app_path, 'tp-player.exe')

        # qt-redist
        qt_redist_path = os.path.join(env.root_path, 'client', 'tools',
                                      'qt-redist')
        utils.copy_file(qt_redist_path, tmp_app_path, 'Qt5Core.dll')
        utils.copy_file(qt_redist_path, tmp_app_path, 'Qt5Gui.dll')
        utils.copy_file(qt_redist_path, tmp_app_path, 'Qt5Network.dll')
        utils.copy_file(qt_redist_path, tmp_app_path, 'Qt5Widgets.dll')
        utils.copy_ex(os.path.join(qt_redist_path, 'platforms'),
                      os.path.join(tmp_app_path, 'platforms'))
        utils.copy_ex(os.path.join(qt_redist_path, 'styles'),
                      os.path.join(tmp_app_path, 'styles'))
        utils.copy_ex(os.path.join(qt_redist_path, 'translations'),
                      os.path.join(tmp_app_path, 'translations'))

        # zlib
        suffix = 'd' if ctx.target_path == 'debug' else ''
        utils.copy_file(
            os.path.join(env.root_path, 'external', 'zlib', 'build',
                         ctx.target_path), tmp_app_path,
            'zlib{}.dll'.format(suffix))

        # openssl
        utils.copy_file(
            os.path.join(env.root_path, 'external', 'openssl', 'bin'),
            tmp_app_path, 'libcrypto-1_1.dll')
        utils.copy_file(
            os.path.join(env.root_path, 'external', 'openssl', 'bin'),
            tmp_app_path, 'libssl-1_1.dll')

        # final build
        utils.nsis_build(
            os.path.join(env.root_path, 'dist', 'client', 'windows', 'assist',
                         'installer.nsi'))