From c91d7cb1a292a8203a148eb0dbac83c1886390ad Mon Sep 17 00:00:00 2001 From: jschantli Date: Wed, 7 Oct 2026 18:06:50 -0700 Subject: [PATCH] Added manual installation workaround for Antigravity App and IDE --- postinstall.sh | 73 +++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 66 insertions(+), 7 deletions(-) diff --git a/postinstall.sh b/postinstall.sh index 7629d72..86c1e62 100644 --- a/postinstall.sh +++ b/postinstall.sh @@ -549,13 +549,72 @@ install_antigravity() { check_status "Antigravity CLI installation" "non-critical" log_info "Installing Antigravity App and IDE..." - # Community installer (opensnap). It downloads Google's official tarballs - # into /opt and adds launchers. It needs python3, and nautilus-python - # enables its "Open in Antigravity IDE" entry in Files. - sudo dnf install -y python3 nautilus-python - INSTALLER_URL="https://opensnap.github.io/antigravity/install.sh" - curl -fsSL "$INSTALLER_URL" | sudo -E env ANTIGRAVITY_LINUX_INSTALLER_URL="$INSTALLER_URL" bash -s -- --all - check_status "Antigravity App and IDE installation" "non-critical" + sudo dnf install -y python3 nautilus-python curl tar + + log_info "Fetching latest download URLs from Google..." + AG_URL=$(curl -s https://antigravity.google/download | grep -oP 'https://[^"]+linux-x64/Antigravity\.tar\.gz' | head -n 1) + AG_IDE_URL=$(curl -s https://antigravity.google/download | grep -oP 'https://[^"]+linux-x64/Antigravity%20IDE\.tar\.gz' | head -n 1) + + if [ -z "$AG_URL" ] || [ -z "$AG_IDE_URL" ]; then + log_error "Failed to resolve Antigravity download URLs." + FAILED_STEPS+=("Antigravity installation") + return + fi + + log_info "Installing Antigravity 2.0 App..." + sudo rm -rf /opt/antigravity + sudo mkdir -p /opt/antigravity + if ! curl -sL "$AG_URL" | sudo tar -xz -C /opt/antigravity --strip-components=1; then + log_error "Failed to extract Antigravity 2.0 App." + FAILED_STEPS+=("Antigravity installation") + return + fi + sudo ln -sfn /opt/antigravity/antigravity /usr/local/bin/antigravity + + sudo mkdir -p /usr/share/applications /usr/share/icons/hicolor/512x512/apps + if [ -f "/opt/antigravity/resources/app/resources/linux/code.png" ]; then + sudo cp "/opt/antigravity/resources/app/resources/linux/code.png" /usr/share/icons/hicolor/512x512/apps/antigravity.png + fi + sudo bash -c 'cat > /usr/share/applications/antigravity.desktop' < /usr/share/applications/antigravity-ide.desktop' <