INNER CODE UNIT · Python

stage_package

CyrilPeng/Venera-Next · debian/build.py:20

def stage_package(bundle, stage, arch, version):
    validate_bundle(bundle, arch)
    deb_version, _ = versions(version)
    stage_bundle(bundle, stage / INSTALL_PATH)
    control = stage / "DEBIAN"
    control.mkdir()
    (control / "control").write_text(
        "Package: venera-next\n"
        f"Version: {deb_version}\n"
        f"Architecture: {DEBIAN_ARCHES[arch]}\n"
        "Section: graphics\nPriority: optional\n"
        "Depends: libwebkit2gtk-4.1-0, libgtk-3-0\n"
        "Maintainer: CyrilPeng <https://github.com/CyrilPeng/venera-next>\n"
        "Description: VeneraNext comic reader\n",
        encoding="utf-8",
    )
    applications = stage / "usr/share/applications"
    applications.mkdir(parents=True)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…