INNER CODE UNIT · Python

main

Silverlan/pragma · build_scripts/generate_appimage.py:36

def main():
    appimage_base_path = Path(build_directory) / "appimage"
    appimage_data_path = appimage_base_path / "data"
    appimage_install_path = appimage_data_path / "usr/bin"
    os.makedirs(appimage_data_path, exist_ok=True)

    shutil.rmtree(appimage_install_path, ignore_errors=True)
    shutil.rmtree(appimage_data_path / "usr/lib", ignore_errors=True)
    print(f"Copying install files to {str(appimage_install_path)}...")
    shutil.copytree(
        install_directory, 
        appimage_install_path, 
        symlinks=True,
        ignore_dangling_symlinks=True,
        ignore=shutil.ignore_patterns("cache", "Singleton*")
    )

    repo_path = Path.cwd().parent

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…