Exemple #1
0
    # Install Openssl
    install_openssl_ifneeded()

    # Install libimobledevice tools and library
    install_lib_ifneeded('libplist', LIBPLIST_URL, LIBPLIST_COMMIT)
    install_lib_ifneeded('libusbmuxd',
                         LIBUSBMUXD_URL,
                         LIBUSBMUXD_COMMIT,
                         is_pkg_config=True)
    install_lib_ifneeded('libimobiledevice',
                         LIBIMOBILEDEVICE_URL,
                         LIBIMOBILEDEVICE_COMMIT,
                         is_pkg_config=True,
                         is_ld_library=True,
                         is_cdpath=True)

    if os.path.isdir(TMP_PATH):
        shutil.rmtree(TMP_PATH)

    if os.path.isdir(f'{INSTALL_DIR}/bin'):
        if uname('-s').find('MINGW') > -1:
            shell("cp dependencies/bin/*.dll dependencies/lib")
        shutil.rmtree(f'{INSTALL_DIR}/bin')

    if uname('-s') == "Darwin":
        change_dylib_path_to_relative()

    if (artifact):
        artifact.try_zip_and_upload_artifact(INSTALL_DIR, artifact_name,
                                             LIBIMOBILEDEVICE_NODE_ARTIFACT)