Added manual installation workaround for Antigravity App and IDE
This commit is contained in:
1 parent
0b2f0a2b0a
commit
c91d7cb1a2
1 file changed
+66
-7
+66
-7
@@ -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' <<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."
|
||||
}
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user