Skip to content

feat: add .deb + AUR packaging prototypes for antigravity CLI - #6

Open
sandikodev wants to merge 3 commits into
opensnap:mainfrom
sandikodev:feat/packaging-cli
Open

feat: add .deb + AUR packaging prototypes for antigravity CLI#6
sandikodev wants to merge 3 commits into
opensnap:mainfrom
sandikodev:feat/packaging-cli

Conversation

@sandikodev

Copy link
Copy Markdown

Summary

Adds native Linux packaging for the Antigravity CLI (agy), complementing Google's existing curl | bash installer. Users who prefer native package management can now install via .deb (Debian/Ubuntu) or AUR (Arch Linux).

Closes #5

What's included

Debian/Ubuntu (.deb) — packaging/debian/

  • DEBIAN/control — Package metadata (v1.1.14, amd64, depends on libc6/libstdc++6)
  • DEBIAN/postinst, prerm, postrm — Standard maintainer scripts with #DEBHELPER# tokens
  • build-deb.sh — Build script using dpkg-deb, auto-detects agy binary location
  • Desktop entries for app menu integration

Arch Linux (AUR) — packaging/arch/

  • PKGBUILD — Supports x86_64 + aarch64, proper provides, conflicts, optdepends
  • .SRCINFO — AUR metadata for makepkg --printsrcinfo
  • Shell profile (antigravity-cli.sh) for PATH setup
  • Desktop entries for app menu integration

Test suite — packaging/test-antigravity.sh

  • 261 tests covering CLI installation, desktop launchers, packaging, documentation, host environment, cross-DE compatibility, and script quality
  • Tested on Ubuntu 26.04 LTS (Research-01) — all tests passed

How to build & install

Debian

cd packaging/debian
bash build-deb.sh 1.1.14
sudo dpkg -i build/antigravity-cli_1.1.14-1_amd64.deb

Arch Linux

cd packaging/arch
makepkg -si

Notes

  • Packages install the CLI only (agy), not Desktop 2.0 or IDE (those are handled by Google's official installer)
  • Desktop entries launch via terminal emulator (Alacritty preferred, falls back to system default)
  • All files respect the original repo structure — no existing code is modified
  • Tested on: Ubuntu 26.04 LTS, glibc 2.43, x86_64

Adds native Linux packaging for antigravity CLI (agy):

Debian/Ubuntu (.deb):
- DEBIAN/control with proper metadata
- Maintainer scripts (postinst, prerm, postrm)
- build-deb.sh for dpkg-deb packaging
- Desktop entries for app menu integration

Arch Linux (AUR):
- PKGBUILD with x86_64 + aarch64 support
- .SRCINFO metadata
- Shell profile for PATH setup
- Desktop entries for app menu integration

Also includes test-antigravity.sh (261 tests, tested on Ubuntu 26.04).

Closes opensnap#5
- Debian .deb: Desktop 2.0 + IDE + CLI (341MB)
- AUR PKGBUILD: full suite for x86_64 + aarch64
- GitHub Actions: auto-build .deb on tag push
- Desktop entries: Desktop 2.0, IDE, CLI
- Icons: official Google Antigravity (9 sizes per app)
- Docker test: 5/5 Debian-based distros PASS
  Ubuntu 24.04, 22.04, Debian 12, 13, Linux Mint 22
- Fedora 40: package structure validated
- Dynamic URL resolution in build-deb.sh
- CLI tarball fix (binary rename antigravity → agy)
- build-deb.sh: --fast mode strips Electron bloat
- build-deb.sh: builds in /tmp to avoid SSHFS timeouts
- build-deb.sh: rsync support for faster copies
- README-research.md: cross-distro test results table
- README-research.md: work plan phases 5-7 updated
- v2.8.1 tag created and .deb released on GitHub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposal: Official .deb + AUR packages for Antigravity CLI

1 participant