INNER CODE UNIT · Python

clean_windows_runner_build

CyrilPeng/Venera-Next · windows/build.py:48

def clean_windows_runner_build():
    if WINDOWS_RUNNER_BUILD_DIR.exists():
        shutil.rmtree(WINDOWS_RUNNER_BUILD_DIR)


def create_portable_zip(version):
    if not WINDOWS_RELEASE_DIR.is_dir():
        raise FileNotFoundError(WINDOWS_RELEASE_DIR)

    zip_path = WINDOWS_BUILD_DIR / f"VeneraNext-{version}-windows.zip"
    package_dir = WINDOWS_BUILD_DIR / f"VeneraNext-{version}-windows"
    if zip_path.exists():
        zip_path.unlink()
    if package_dir.exists():
        shutil.rmtree(package_dir)

    try:
        shutil.copytree(WINDOWS_RELEASE_DIR, package_dir)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…