Exemple #1
0
    print(f'✅ {libusbmuxd}\n')
    install_name_tool('-change', libplist, libusbmuxd)

    print(f'✅ {libimobiledevice}\n')
    for library in [libssl, libcrypto, libplist, libusbmuxd]:
        install_name_tool('-change', library, libimobiledevice)


# RUN SCRIPT
if __name__ == "__main__":
    artifact = None
    try:
        artifact = Artifact(bucket_name='ios-native-qustodio-dev')

        dependencies_hash = artifact.get_hash_from(
            file_content=DEPENDENCIES_FILE)
        artifact_name = f'{dependencies_hash}.zip'

        print('depenencies hash: ', dependencies_hash)
        print('ROOT_PATH: ', ROOT_PATH)

        if not os.path.isdir(INSTALL_DIR):
            if artifact.try_download_and_unzip_artifact(
                    artifact_name,
                    LIBIMOBILEDEVICE_NODE_ARTIFACT,
                    unzip_path=get_relative_path('../')):
                exit(0)

            print("🛠 Don't worry building it for you...")
    except Exception as error:
        print(f"💥 Artifact error: {error}")