mirror of
https://github.com/archlinux/aur.git
synced 2026-02-09 22:44:04 +01:00
bump version to 1.13.1 and introduce automatic update script
This commit is contained in:
parent
9517125d79
commit
11dda4587b
3 changed files with 85 additions and 5 deletions
6
.SRCINFO
6
.SRCINFO
|
|
@ -1,6 +1,6 @@
|
|||
pkgbase = goose-desktop-bin
|
||||
pkgdesc = Goose Desktop (prebuilt .deb repack) — an open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM
|
||||
pkgver = 1.12.1
|
||||
pkgver = 1.13.1
|
||||
pkgrel = 1
|
||||
url = https://github.com/block/goose
|
||||
arch = x86_64
|
||||
|
|
@ -8,7 +8,7 @@ pkgbase = goose-desktop-bin
|
|||
depends = glibc
|
||||
provides = goose-desktop
|
||||
conflicts = goose-desktop
|
||||
source = goose_1.12.1_amd64.deb::https://github.com/block/goose/releases/download/v1.12.1/goose_1.12.1_amd64.deb
|
||||
sha256sums = 0351c7f49fc7f5ab160421ffe8055199ec2d2ab0d03dd6bd06f477aca81f2645
|
||||
source = goose_1.13.1_amd64.deb::https://github.com/block/goose/releases/download/v1.13.1/goose_1.13.1_amd64.deb
|
||||
sha256sums = ec6f92982cb4a01a5972321f65be61758a655aff18eba4072b3b7e8c3bc83b8c
|
||||
|
||||
pkgname = goose-desktop-bin
|
||||
|
|
|
|||
4
PKGBUILD
4
PKGBUILD
|
|
@ -1,6 +1,6 @@
|
|||
# Maintainer: Igor Aguiar Rodrigues <igor_aguiar@yahoo.com.br>
|
||||
pkgname=goose-desktop-bin
|
||||
pkgver=1.12.1
|
||||
pkgver=1.13.1
|
||||
pkgrel=1
|
||||
pkgdesc="Goose Desktop (prebuilt .deb repack) — an open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM"
|
||||
arch=('x86_64')
|
||||
|
|
@ -11,7 +11,7 @@ conflicts=('goose-desktop') # conflict only with the source-built variant, n
|
|||
depends=('glibc')
|
||||
# tip: replace SKIP with the real SHA256 (use updpkgsums)
|
||||
source=("goose_${pkgver}_amd64.deb::https://github.com/block/goose/releases/download/v${pkgver}/goose_${pkgver}_amd64.deb")
|
||||
sha256sums=('0351c7f49fc7f5ab160421ffe8055199ec2d2ab0d03dd6bd06f477aca81f2645')
|
||||
sha256sums=('ec6f92982cb4a01a5972321f65be61758a655aff18eba4072b3b7e8c3bc83b8c')
|
||||
|
||||
build() { :; }
|
||||
|
||||
|
|
|
|||
80
update-goose-pkgbuild.sh
Executable file
80
update-goose-pkgbuild.sh
Executable file
|
|
@ -0,0 +1,80 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Colors for output
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[1;33m'
|
||||
NC='\033[0m' # No Color
|
||||
|
||||
REPO="block/goose"
|
||||
PKGBUILD_FILE="PKGBUILD"
|
||||
|
||||
echo -e "${GREEN}Fetching latest release from GitHub API...${NC}"
|
||||
|
||||
# Fetch the latest release info from GitHub API
|
||||
RELEASE_DATA=$(curl -s "https://api.github.com/repos/${REPO}/releases/latest")
|
||||
|
||||
# Extract version (remove 'v' prefix if present)
|
||||
LATEST_VERSION=$(echo "$RELEASE_DATA" | jq -r '.tag_name' | sed 's/^v//')
|
||||
|
||||
if [[ -z "$LATEST_VERSION" || "$LATEST_VERSION" == "null" ]]; then
|
||||
echo -e "${RED}Error: Could not fetch latest version${NC}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo -e "${GREEN}Latest version: ${YELLOW}${LATEST_VERSION}${NC}"
|
||||
|
||||
# Get current version from PKGBUILD
|
||||
CURRENT_VERSION=$(grep '^pkgver=' "$PKGBUILD_FILE" | cut -d'=' -f2)
|
||||
|
||||
echo -e "${GREEN}Current version: ${YELLOW}${CURRENT_VERSION}${NC}"
|
||||
|
||||
if [[ "$LATEST_VERSION" == "$CURRENT_VERSION" ]]; then
|
||||
echo -e "${YELLOW}Already up to date!${NC}"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Find the .deb asset and its SHA256 digest from the API
|
||||
ASSET_NAME="goose_${LATEST_VERSION}_amd64.deb"
|
||||
echo -e "${GREEN}Looking for asset: ${YELLOW}${ASSET_NAME}${NC}"
|
||||
|
||||
# Extract the digest for the specific .deb file
|
||||
# GitHub API returns digest in format "sha256:HASH"
|
||||
DIGEST=$(echo "$RELEASE_DATA" | jq -r ".assets[] | select(.name == \"${ASSET_NAME}\") | .digest")
|
||||
|
||||
if [[ -z "$DIGEST" || "$DIGEST" == "null" ]]; then
|
||||
echo -e "${RED}Error: Could not find SHA256 digest for ${ASSET_NAME}${NC}"
|
||||
echo -e "${YELLOW}Note: GitHub only provides digests for newly published releases.${NC}"
|
||||
echo -e "${YELLOW}For older releases, you may need to download and calculate the hash.${NC}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Remove the "sha256:" prefix to get just the hash
|
||||
SHA256=$(echo "$DIGEST" | sed 's/^sha256://')
|
||||
|
||||
echo -e "${GREEN}SHA256: ${YELLOW}${SHA256}${NC}"
|
||||
|
||||
# Update PKGBUILD
|
||||
echo -e "${GREEN}Updating PKGBUILD...${NC}"
|
||||
|
||||
# Update pkgver
|
||||
sed -i "s/^pkgver=.*/pkgver=${LATEST_VERSION}/" "$PKGBUILD_FILE"
|
||||
|
||||
# Reset pkgrel to 1
|
||||
sed -i "s/^pkgrel=.*/pkgrel=1/" "$PKGBUILD_FILE"
|
||||
|
||||
# Update sha256sums
|
||||
sed -i "s/^sha256sums=.*/sha256sums=('${SHA256}')/" "$PKGBUILD_FILE"
|
||||
|
||||
echo -e "${GREEN}✓ PKGBUILD updated successfully!${NC}"
|
||||
echo ""
|
||||
echo -e "${YELLOW}Changes:${NC}"
|
||||
echo -e " Version: ${CURRENT_VERSION} → ${LATEST_VERSION}"
|
||||
echo -e " SHA256: ${SHA256}"
|
||||
echo ""
|
||||
echo -e "${YELLOW}Next steps:${NC}"
|
||||
echo " 1. Review the changes: git diff PKGBUILD"
|
||||
echo " 2. Test the build: makepkg -si"
|
||||
echo " 3. Update .SRCINFO: makepkg --printsrcinfo > .SRCINFO"
|
||||
echo " 4. Commit and push to AUR"
|
||||
Loading…
Add table
Reference in a new issue