Skip to content

fix: resolve downloads from static download page HTML - #4

Open
ArezG wants to merge 2 commits into
opensnap:mainfrom
ArezG:fix/download-page-html
Open

fix: resolve downloads from static download page HTML#4
ArezG wants to merge 2 commits into
opensnap:mainfrom
ArezG:fix/download-page-html

Conversation

@ArezG

@ArezG ArezG commented Aug 15, 2026

Copy link
Copy Markdown

Summary

  • The official download page (https://antigravity.google/download) was rebuilt with Astro: download links are now static HTML <a href> elements instead of a main-*.js bundle. The installer scraped the JS bundle for id:"antigravity-2" markers, so update/install fails with Could not find official Antigravity 2.0 tarball for linux-x64 in Google download bundle.
  • Parse the download page HTML directly, scoped by product section id (antigravity-2, antigravity-cli, antigravity-ide, antigravity-sdk), and match the platform-specific tarball href (<platform>/Antigravity.tar.gz, <platform>/Antigravity%20IDE.tar.gz). Version detection is unchanged (/antigravity-hub/<version>/, /stable/<version>/).
  • Also fix the EXIT trap in main that referenced the local tmpdir variable: locals are destroyed before the trap runs, so under set -u every abort printed tmpdir: variable sin asignar. Use a global TMP_WORK cleaned by a dedicated cleanup trap.

Changes

File Change
install.sh Replace JS-bundle scraping with direct HTML parsing; global TMP_WORK cleanup trap
docs/install.sh Synced copy of install.sh (via scripts/sync-site.sh)

Test plan

  • bash install.sh --print-downloads resolves Antigravity 2.0 2.8.1 (storage.googleapis.com/antigravity-public/antigravity-hub/...)
  • bash install.sh --print-downloads --ide resolves Antigravity IDE 2.5.5 (edgedl.me.gvt1.com .../stable/...)
  • Real update --desktop run on Debian 13 (trixie) installed 2.8.1 successfully
  • Exit status 0 after successful resolution (no tmpdir trap noise)

Verified against the current live page on 2026-08-15.

ArezG added 2 commits August 15, 2026 10:21
The official download page now ships download links as static HTML
(Astro) instead of a main-*.js bundle. Parse the HTML directly,
scoped by product section id, and drop the JS-bundle scraping.

Also fix the EXIT trap referencing a main() local (tmpdir) that is
already destroyed when the trap runs, which printed
'tmpdir: variable sin asignar' under set -u on every abort.
@sandikodev

Copy link
Copy Markdown

Test Report — Research-01 (Ubuntu 26.04 LTS, x86_64)

Tested: 2026-08-19
Environment: Ubuntu 26.04 (Resolute Raccoon), GNOME Wayland, glibc 2.43, GTX 980 Ti
Command: sudo bash install.sh --all

Results

Component Version Status
Antigravity 2.0 2.8.1 Installed at /opt/antigravity/Antigravity-x64
Antigravity IDE 2.5.5 Installed at /opt/antigravity-ide/Antigravity-IDE
CLI (agy) 1.1.14 Already installed (v1.1.14 via separate installer)
Desktop files Created in /usr/share/applications/
Symlinks /usr/local/bin/antigravity → Desktop, /usr/local/bin/antigravity-ide → IDE

What works

  • Download resolver correctly parses static HTML <a href> links (no more JS bundle scraping)
  • Desktop 2.0 tarball resolved and extracted successfully
  • IDE tarball resolved and extracted successfully
  • Desktop files created with correct Exec=, Icon=, StartupWMClass=
  • Version files written correctly (2.8.1 and 2.5.5)
  • Cleanup via global TMP_WORK + cleanup() function works as expected

Minor notes (not blockers)

  • Nautilus extension skipped (expected — Python Nautilus bindings unavailable on this host)
  • One GPU process error on startup (expected — Electron GPU acceleration in headless-like environment)
  • antigravity-linux --status reports no stored URL (expected when running local script)

Verdict

Approve. The static HTML parsing approach is correct and clean. This PR properly fixes the root cause (Google's switch from Astro JS bundles to static HTML download pages). Tested on Ubuntu 26.04 — both Desktop 2.0 and IDE resolve and install successfully.

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.

2 participants