4.3 KiB
4.3 KiB
Linux packaging
What changed
install.sh(repo root): POSIXshone-liner installer. Detects distro family (Arch/CachyOS/Manjaro, Debian/Ubuntu/neon/Mint, Fedora, openSUSE) from/etc/os-release, GPU vendor (nvidia/amd/intel/none) fromlspci, and session type (wayland/x11) fromXDG_SESSION_TYPE/env. Prints its plan, asks before anysudostep unless--yes, supports--dry-runand--uninstall. Checks for a matching release asset on the Gitea API first (.pkg.tar.zstfor Arch,.debfor Debian); none exist yet (no tags published), so it always falls back to building from source withcargointo~/.cache/summit/src, installing to/usr/local/binand/usr/local/share/summit/engine. Sets up the engine's venv withuv venv --python 3.12, installsengine/requirements.txt, and installs the CUDA 12.8 torch wheel only when an NVIDIA GPU was detected.packaging/arch/PKGBUILD: builds from a git tag archive ($url/archive/v$pkgver.tar.gz), installs both binaries, the engine tree under/usr/share/summit/engine, the.desktopfile and icon.packaging/deb/control+packaging/deb/build.sh: assembles a staging tree and runsdpkg-deb --builddirectly (nodebhelper/cargo-debdependency at build time, thoughcargo-debwas installed and considered — see below).packaging/appimage/build.sh: recipe usinglinuxdeploy+appimagetool.packaging/summit.desktop,packaging/icons/summit.png(reused fromengine/framegen/assets/icon_64.png).- README: added an "Install" section with the one-liner in a copyable block, and updated the status table for
.deb/AUR/AppImage/Flatpak to replace the old blanket "Planned" row.
What I verified and how
shellcheck -s shis clean oninstall.sh,packaging/deb/build.shandpackaging/appimage/build.sh(shellcheck installed via apt for this session).install.sh --dry-runran clean on this machine (Debian trixie, real hardware: detecteddebian/nvidia).install.sh --dry-run --yesrun insidedocker run debian:bookworm-slim,archlinux:latest,fedora:latestandopensuse/leap:latestcontainers, each producing the correct distro-family branch and package manager commands with no errors.- Confirmed the interactive sudo-confirmation path exists and the non-root, non-
--yes, non-dry-run path requires ayanswer (code-reviewed; not exercised live since dry-run intentionally skips prompting). install.sh --dry-run --uninstallprints the expectedrmcommands and leaves user data/config alone.- Built real release binaries with
cargo build --release -p summit -p summit-gui, then ranpackaging/deb/build.sh, which producedtarget/debian/summit_0.0.1_amd64.deb(~11 MB). Verified its contents and control metadata withdpkg-deb --info/--contents: both binaries, the engine tree, desktop file, icon and LICENSE are present with correct permissions. - Did not install the
.debon a real system (no safe way to do so without affecting this environment's actual package state) and did not run it throughapt/dpkg -iend to end. packaging/arch/PKGBUILDwas not run throughmakepkg(not installed in this environment, and it needs a pushedv0.0.1git tag/release archive that doesn't exist yet). Reviewed by hand againstcargo build --frozen --releaseand PKGBUILD conventions only.packaging/appimage/build.shwas not run:linuxdeployandappimagetoolare not available here and I did not download arbitrary third-party binaries into this environment. Reviewed by hand only.cargo test --workspace: 43 + 14 tests pass (no code was touched, only new packaging files and README).
What is NOT done
- No Gitea release/tag exists yet, so the "native package if a release asset exists" path in
install.shis untested in practice (the logic to find and download one is there, but there is nothing to find). - PKGBUILD is unbuilt/untested (needs
makepkg, a real tag, andarchtooling). - AppImage recipe is unbuilt/untested (needs
linuxdeploy/appimagetool). - The
.debwas not installed and run on a target machine (only built and inspected). - openSUSE's
zypperpackage install commands run without shell errors in--dry-runbut were not run for real anywhere (no openSUSE machine with network access to packages here). - No Flatpak manifest (left as Planned, as requested).