-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsdkcraft.yaml
More file actions
55 lines (52 loc) · 1.69 KB
/
Copy pathsdkcraft.yaml
File metadata and controls
55 lines (52 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: agy
title: Google Antigravity CLI SDK
summary: Google Antigravity CLI wrapper SDK for Canonical Workshop
description: |
This SDK is a community-maintained wrapper that installs Google's Antigravity CLI (agy)
inside a Canonical Workshop environment. It provides global access to the agy binary
and persists credential configuration across workshop updates.
contact: https://github.com/rajannpatel/agy-sdk
issues: https://github.com/rajannpatel/agy-sdk/issues
source-code: https://github.com/rajannpatel/agy-sdk
website: https://github.com/rajannpatel/agy-sdk
adopt-info: agy
license: MIT AND Proprietary
build-base: ubuntu@26.04
platforms:
amd64:
build-on: [amd64, arm64]
build-for: [amd64]
arm64:
build-on: [amd64, arm64]
build-for: [arm64]
plugs:
gemini-config:
interface: mount
workshop-target: /home/workshop/.gemini
desktop:
interface: desktop
gpu:
interface: gpu
parts:
agy:
plugin: dump
source: .
source-type: local
override-pull: |
VERSION=$(cat "$CRAFT_PROJECT_DIR/VERSION")
craftctl set version="$VERSION"
case "$CRAFT_ARCH_BUILD_FOR" in
amd64) ARCH_SUFFIX="x64" ;;
arm64) ARCH_SUFFIX="arm64" ;;
*) echo "Unsupported architecture: $CRAFT_ARCH_BUILD_FOR" >&2; exit 1 ;;
esac
FILENAME="agy_cli_linux_${ARCH_SUFFIX}.tar.gz"
URL="https://github.com/google-antigravity/antigravity-cli/releases/download/${VERSION}/${FILENAME}"
curl -fLO "$URL"
tar -xzf "$FILENAME" -C "$CRAFT_PART_SRC"
rm "$FILENAME"
override-build: |
craftctl default
install -Dm755 "$CRAFT_PROJECT_DIR/bin/agy" "$CRAFT_PART_INSTALL/bin/agy"
organize:
antigravity: bin/agy-bin