A fast, lightweight, and user-space installer and updater script for Antigravity IDE and Antigravity 2.0 (Chat) on Linux distributions from official .tar.gz tarballs.
- 👤 Zero-Root / User-Space: Installs cleanly into
~/Applications/without requiringsudoor root privileges. - 🔍 Smart Auto-Detection: Automatically inspects tarball contents to identify whether you are installing/updating the IDE or Antigravity 2.0 (Chat).
- 🔄 Seamless Upgrades (
-u/--update): In-place replacement of application binaries while preserving user profiles, settings, extensions, and configurations. - 🎨 Complete Desktop Integration:
- Generates valid XDG
.desktoplaunchers for application menus and docks. - Generates and installs multi-resolution icons (16x16 up to 1024x1024) into standard
hicoloricon themes. - Configures MIME type associations and URL protocol handlers.
- Generates valid XDG
- 💻 CLI Integration: Automatically adds binaries and wrapper scripts into
~/.local/bin/(antigravity-ide,antigravity,antigravity-chat). - 🛡️ Electron Compatibility: Configured with proper sandbox flags (
--no-sandbox) to prevent common Electron launch issues on modern Linux kernels.
This script has been designed following standard XDG Base Directory specifications and POSIX/GNU conventions.
| Distribution | Version / Compatibility | Notes |
|---|---|---|
| Ubuntu | 20.04 LTS, 22.04 LTS, 24.04 LTS (Tested) | Full support |
| Debian | 11 (Bullseye), 12 (Bookworm), Sid | Full support |
| Fedora | 38, 39, 40+ | Full support |
| Arch Linux / Manjaro | Rolling Release / EndeavourOS | Full support |
| Linux Mint / Pop!_OS | All active releases | Full support |
| openSUSE | Leap 15.x, Tumbleweed | Full support |
| RHEL / Rocky / AlmaLinux | 8.x, 9.x+ | Full support |
- WSL2 with WSLg (Windows 11 / Windows 10 with GUI support): Fully supported.
- GNOME (Tested on GNOME 40 through GNOME 46+)
- KDE Plasma (5.x and 6.x)
- XFCE, Cinnamon, MATE, LXQt, Budgie, Cosmic
- Wayland Compositors (Sway, Hyprland, Wayfire) & X11 sessions
- Standard tools (usually pre-installed on every Linux distribution):
bash(version 4.0+)tar&gzip/xzcoreutils(mkdir,cp,mv,chmod,mktemp)
- Optional enhancement packages (automatically used if present):
imagemagick(convert): for generating crisp icons across all pixel dimensions.desktop-file-utils(update-desktop-database): for instantly refreshing application menus.gtk-update-icon-cache: for rebuilding desktop icon caches.
Clone the repository and make the script executable:
git clone https://github.com/granafilo/antigravity-install-script.git
cd antigravity-install-script
chmod +x install-antigravity.sh(Optional) Create a symlink to run install-antigravity from anywhere:
mkdir -p ~/.local/bin
ln -sf "$(pwd)/install-antigravity.sh" ~/.local/bin/install-antigravityPass the downloaded tarball directly to the script:
./install-antigravity.sh ~/Downloads/"Antigravity IDE.tar.gz"
# or for the Chat / 2.0 app:
./install-antigravity.sh ~/Downloads/antigravity-linux-x64.tar.gzTo update your current version with a newly downloaded tarball:
./install-antigravity.sh -u ~/Downloads/"Antigravity IDE.tar.gz"If you run the script with -u (or without arguments), it will automatically look for available tarballs in your current directory, ~/Downloads, and ~/Scaricati:
./install-antigravity.sh -u| Option | Long Option | Description |
|---|---|---|
-u |
--update |
Update mode: safely replaces application binaries while preserving configuration |
-i |
--install |
Force installation mode (default behavior) |
--ide |
Force target application type to Antigravity IDE | |
--chat, --2.0 |
Force target application type to Antigravity 2.0 (Chat) | |
-a <file> |
--archive <file> |
Specify tarball archive path explicitly |
-h |
--help |
Show help message and command examples |
The script installs all components into standard user-space locations:
~ (Home Directory)
├── Applications/
│ ├── antigravity-ide/ # IDE binaries and runtime files
│ └── antigravity-chat/ # Chat / 2.0 binaries and runtime files
├── .local/
│ ├── bin/
│ │ ├── antigravity-ide # Symlink to IDE executable
│ │ ├── antigravity # Wrapper script for Chat / 2.0
│ │ └── antigravity-chat # Compatibility symlink
│ └── share/
│ ├── applications/
│ │ ├── antigravity-ide.desktop
│ │ └── antigravity.desktop
│ └── icons/hicolor/*/apps/
│ ├── antigravity-ide.png
│ └── antigravity.png
Contributions, issues, and feature requests are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the GNU General Public License v3.0 (GPLv3). See the LICENSE file for details.