fix: resolve downloads from static download page HTML - #4
Open
ArezG wants to merge 2 commits into
Open
Conversation
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.
Test Report — Research-01 (Ubuntu 26.04 LTS, x86_64)Tested: 2026-08-19 Results
What works
Minor notes (not blockers)
VerdictApprove. 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
https://antigravity.google/download) was rebuilt with Astro: download links are now static HTML<a href>elements instead of amain-*.jsbundle. The installer scraped the JS bundle forid:"antigravity-2"markers, soupdate/installfails withCould not find official Antigravity 2.0 tarball for linux-x64 in Google download bundle.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>/).EXITtrap inmainthat referenced thelocal tmpdirvariable: locals are destroyed before the trap runs, so underset -uevery abort printedtmpdir: variable sin asignar. Use a globalTMP_WORKcleaned by a dedicatedcleanuptrap.Changes
install.shTMP_WORKcleanup trapdocs/install.shinstall.sh(viascripts/sync-site.sh)Test plan
bash install.sh --print-downloadsresolvesAntigravity 2.0 2.8.1(storage.googleapis.com/antigravity-public/antigravity-hub/...)bash install.sh --print-downloads --ideresolvesAntigravity IDE 2.5.5(edgedl.me.gvt1.com .../stable/...)update --desktoprun on Debian 13 (trixie) installed 2.8.1 successfullytmpdirtrap noise)Verified against the current live page on 2026-08-15.