initial release of antigravity-cli 1.0.0

This commit is contained in:
viridivn
2026-05-19 17:02:05 -04:00
commit 7d2d1f76e2
5 changed files with 126 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
pkgbase = antigravity-cli
pkgdesc = Google's agentic development platform (CLI companion)
pkgver = 1.0.0_5288553236791296
pkgrel = 1
url = https://antigravity.google/
install = antigravity-cli.install
arch = x86_64
arch = aarch64
license = custom:proprietary
depends = glibc
optdepends = antigravity: to authenticate and share session state from the desktop application
provides = agy
conflicts = agy
options = !strip
source = LICENSE
sha256sums = 7bcdb3cf53451b33c75e04f1f0e623e8aa8b7943a72f54f4781a7ad545a7d1ce
source_x86_64 = antigravity-cli-1.0.0_5288553236791296-x86_64.tar.gz::https://storage.googleapis.com/antigravity-public/antigravity-cli/1.0.0-5288553236791296/linux-x64/cli_linux_x64.tar.gz
sha256sums_x86_64 = 70096340574fafc4a06c4d3c8057314e22d475ce1c820d0ad51ff07fb7e99eb6
source_aarch64 = antigravity-cli-1.0.0_5288553236791296-aarch64.tar.gz::https://storage.googleapis.com/antigravity-public/antigravity-cli/1.0.0-5288553236791296/linux-arm/cli_linux_arm64.tar.gz
sha256sums_aarch64 = f4dc7c96c1836b00768d8a6ec6eacc7851f3424bd6f4ebe4d8b848a652072a85
pkgname = antigravity-cli
+25
View File
@@ -0,0 +1,25 @@
Antigravity CLI AUR Packaging License
-------------------------------------
The Arch Linux packaging scripts (PKGBUILD, update.sh, and associated
AUR integration files) are licensed under the BSD Zero Clause License (0BSD):
Copyright 2026 Google LLC
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
-------------------------------------
Antigravity CLI Upstream Software Notice
-------------------------------------
The Antigravity CLI application binaries and associated upstream assets are
proprietary software owned by Google LLC. All rights reserved.
This AUR package does not grant any open-source license for the upstream
compiled application.
+28
View File
@@ -0,0 +1,28 @@
# Maintainer: Your Name <your.email@example.com>
pkgname=antigravity-cli
pkgver=1.0.0_5288553236791296
pkgrel=1
pkgdesc="Google's agentic development platform (CLI companion)"
arch=('x86_64' 'aarch64')
url="https://antigravity.google/"
license=('custom:proprietary')
provides=('agy')
conflicts=('agy')
depends=('glibc')
optdepends=('antigravity: to authenticate and share session state from the desktop application')
options=('!strip')
install=antigravity-cli.install
source=("LICENSE")
sha256sums=('7bcdb3cf53451b33c75e04f1f0e623e8aa8b7943a72f54f4781a7ad545a7d1ce')
source_x86_64=("${pkgname}-${pkgver}-x86_64.tar.gz::https://storage.googleapis.com/antigravity-public/antigravity-cli/${pkgver//_/-}/linux-x64/cli_linux_x64.tar.gz")
source_aarch64=("${pkgname}-${pkgver}-aarch64.tar.gz::https://storage.googleapis.com/antigravity-public/antigravity-cli/${pkgver//_/-}/linux-arm/cli_linux_arm64.tar.gz")
sha256sums_x86_64=('70096340574fafc4a06c4d3c8057314e22d475ce1c820d0ad51ff07fb7e99eb6')
sha256sums_aarch64=('f4dc7c96c1836b00768d8a6ec6eacc7851f3424bd6f4ebe4d8b848a652072a85')
package() {
install -Dm755 "${srcdir}/antigravity" "${pkgdir}/usr/bin/agy"
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
+4
View File
@@ -0,0 +1,4 @@
post_install() {
echo ">>> To configure your shell environment for Antigravity CLI, run:"
echo ">>> agy install"
}
Executable
+47
View File
@@ -0,0 +1,47 @@
#!/bin/bash
set -euo pipefail
# 1. Fetch JSON manifests
echo "Fetching manifests..."
MANIFEST_X64=$(curl -sSfL "https://antigravity-cli-auto-updater-974169037036.us-central1.run.app/manifests/linux_amd64.json")
MANIFEST_ARM=$(curl -sSfL "https://antigravity-cli-auto-updater-974169037036.us-central1.run.app/manifests/linux_arm64.json")
# 2. Extract values using python3 to avoid sed/awk fragility
URL_X64=$(echo "$MANIFEST_X64" | python3 -c "import sys, json; print(json.load(sys.stdin)['url'])")
URL_ARM=$(echo "$MANIFEST_ARM" | python3 -c "import sys, json; print(json.load(sys.stdin)['url'])")
# Extract version from x64 URL (which is standard)
# Example URL: https://storage.googleapis.com/antigravity-public/antigravity-cli/1.0.0-5288553236791296/linux-x64/cli_linux_x64.tar.gz
PKGVER_RAW=$(echo "$URL_X64" | grep -oP 'antigravity-cli/\K[^/]+')
PKGVER=${PKGVER_RAW//-/_}
echo "Latest version found: $PKGVER"
# Create a temporary directory in the workspace for calculating SHA256 sums
TEMP_DIR="tmp_update_dir"
mkdir -p "$TEMP_DIR"
trap 'rm -rf "$TEMP_DIR"' EXIT
echo "Downloading x86_64 package..."
curl -sSfL -o "$TEMP_DIR/x64.tar.gz" "$URL_X64"
SHA256_X86_64=$(sha256sum "$TEMP_DIR/x64.tar.gz" | cut -d ' ' -f 1)
echo "Downloading aarch64 package..."
curl -sSfL -o "$TEMP_DIR/arm.tar.gz" "$URL_ARM"
SHA256_AARCH64=$(sha256sum "$TEMP_DIR/arm.tar.gz" | cut -d ' ' -f 1)
echo "SHA256 (x86_64): $SHA256_X86_64"
echo "SHA256 (aarch64): $SHA256_AARCH64"
# Update PKGBUILD
echo "Updating PKGBUILD..."
sed -i "s/^pkgver=.*/pkgver=$PKGVER/" PKGBUILD
sed -i "s/^sha256sums_x86_64=.*/sha256sums_x86_64=('$SHA256_X86_64')/" PKGBUILD
sed -i "s/^sha256sums_aarch64=.*/sha256sums_aarch64=('$SHA256_AARCH64')/" PKGBUILD
# Generate .SRCINFO
echo "Generating .SRCINFO..."
makepkg --printsrcinfo > .SRCINFO
echo "Successfully updated to $PKGVER!"