Added manual installation workaround for Antigravity App and IDE

This commit is contained in:
jschantli committed 2026-10-07 18:06:50 -07:00
1 parent 0b2f0a2b0a
commit c91d7cb1a2
1 file changed
+66 -7
+66 -7
View File
@@ -549,13 +549,72 @@ install_antigravity() {
check_status "Antigravity CLI installation" "non-critical" check_status "Antigravity CLI installation" "non-critical"
log_info "Installing Antigravity App and IDE..." log_info "Installing Antigravity App and IDE..."
# Community installer (opensnap). It downloads Google's official tarballs sudo dnf install -y python3 nautilus-python curl tar
# into /opt and adds launchers. It needs python3, and nautilus-python
# enables its "Open in Antigravity IDE" entry in Files. log_info "Fetching latest download URLs from Google..."
sudo dnf install -y python3 nautilus-python AG_URL=$(curl -s https://antigravity.google/download | grep -oP 'https://[^"]+linux-x64/Antigravity\.tar\.gz' | head -n 1)
INSTALLER_URL="https://opensnap.github.io/antigravity/install.sh" AG_IDE_URL=$(curl -s https://antigravity.google/download | grep -oP 'https://[^"]+linux-x64/Antigravity%20IDE\.tar\.gz' | head -n 1)
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" 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' <<EOF
[Desktop Entry]
Name=Antigravity
Comment=Google Antigravity 2.0
Exec=/usr/local/bin/antigravity %U
Icon=antigravity
Terminal=false
Type=Application
Categories=Development;IDE;
StartupNotify=true
StartupWMClass=antigravity
EOF
log_info "Installing Antigravity IDE..."
sudo rm -rf /opt/antigravity-ide
sudo mkdir -p /opt/antigravity-ide
if ! curl -sL "$AG_IDE_URL" | sudo tar -xz -C /opt/antigravity-ide --strip-components=1; then
log_error "Failed to extract Antigravity IDE."
FAILED_STEPS+=("Antigravity IDE installation")
return
fi
sudo ln -sfn /opt/antigravity-ide/antigravity-ide /usr/local/bin/antigravity-ide
if [ -f "/opt/antigravity-ide/resources/app/resources/linux/code.png" ]; then
sudo cp "/opt/antigravity-ide/resources/app/resources/linux/code.png" /usr/share/icons/hicolor/512x512/apps/antigravity-ide.png
fi
sudo bash -c 'cat > /usr/share/applications/antigravity-ide.desktop' <<EOF
[Desktop Entry]
Name=Antigravity IDE
Comment=Google Antigravity IDE
Exec=/usr/local/bin/antigravity-ide %F
Icon=antigravity-ide
Terminal=false
Type=Application
Categories=Development;IDE;
StartupNotify=true
StartupWMClass=antigravity-ide
EOF
log_info "Antigravity App and IDE installed successfully."
} }
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------