Skip to content

About

A zero-dependency Bash automation script to cleanly install, update, or uninstall Antigravity IDE from official .tar.gz archives on Ubuntu, Debian, and other Linux distributions.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Antigravity IDE for Linux Logo

Antigravity IDE Installer & Updater for Linux

Zero-dependency Bash automation to cleanly install, update, or uninstall Antigravity IDE from official .tar.gz archives on Ubuntu, Debian, and other Linux distributions.

Platform: Linux | Ubuntu Shell: Bash License: MIT


Instead of manually extracting archives, fixing chrome-sandbox permissions, recreating symlinks, and configuring .desktop launchers every time a new version is released, run a single command.

✨ Features

  • Auto-Detection: Automatically locates the newest *Antigravity*.tar.gz archive in your ~/Downloads directory (respecting XDG user directories and sudo invocations).
  • Safe Atomic Updates: Verifies archive integrity and extracts to a temporary staging folder first—your existing installation is never broken if an archive is corrupted or interrupted.
  • Ubuntu 23.10 / 24.04+ AppArmor & Sandbox Ready: Automatically sets root:root ownership and 4755 SUID permissions on chrome-sandbox so Electron launches without sandbox errors.
  • Conflict Resolution: Detects and removes conflicting antigravity Snap installations that shadow /usr/local/bin in $PATH.
  • CLI Integration: Links both antigravity and antigravity-ide to /usr/local/bin via the official CLI wrapper so antigravity . works cleanly from any terminal.
  • Custom Antigravity × Tux Desktop Icon: Automatically installs and configures the custom Antigravity × Linux Tux icon (~/.local/share/icons/antigravity-tux.png and /usr/share/pixmaps/antigravity-ide.png) and registers /usr/share/applications/antigravity-ide.desktop (with a "New Empty Window" right-click action).
  • Version Tracking: Displays the exact version upgrade path (e.g., v2.5.0 -> v2.6.0).

🚀 Quick Start

1. Clone the repository & install the command globally

git clone https://github.com/David-mwas/antigravity-ide-update-script.git
cd antigravity-ide-update-script
chmod +x update-antigravity.sh
./update-antigravity.sh --install-self

This installs the update-antigravity command into ~/.local/bin/update-antigravity.


📖 Usage

Automatic Update (Recommended)

  1. Download the latest Antigravity IDE .tar.gz archive into your ~/Downloads folder.
  2. Run:
update-antigravity

Install from a Specific Archive Path

update-antigravity ~/Downloads/"Antigravity IDE (1).tar.gz"

Install & Delete Archive Afterward

To save disk space by automatically deleting the .tar.gz file once the update succeeds:

update-antigravity --clean-archive

Uninstall Antigravity IDE

To cleanly remove /opt/antigravity, CLI symlinks, and the desktop entry (while preserving your user settings and extensions in ~/.config and ~/.antigravity-ide):

update-antigravity --uninstall

⚙️ All Command-Line Options

Usage:
  update-antigravity [OPTIONS] [/path/to/Antigravity.tar.gz]

Options:
  -f, --file <path>      Path to a specific Antigravity .tar.gz archive
  -d, --dir <path>       Custom installation directory (default: /opt/antigravity)
  -c, --clean-archive    Delete the downloaded .tar.gz archive after successful install
  -u, --uninstall        Completely remove Antigravity IDE, symlinks, and desktop launcher
  -i, --install-self     Install this script globally to ~/.local/bin/update-antigravity
  -h, --help             Show this help message and exit

🐧 Compatibility

Tested and compatible with:

  • Ubuntu (20.04 LTS, 22.04 LTS, 24.04 LTS, and newer)
  • Linux Mint / Pop!_OS / Debian
  • Fedora / Arch / openSUSE (any systemd/XDG-compliant Linux desktop)

📄 License

MIT License

About

A zero-dependency Bash automation script to cleanly install, update, or uninstall Antigravity IDE from official .tar.gz archives on Ubuntu, Debian, and other Linux distributions.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages