Update to version 3.0.21
Bump pkgver and sha256sums for devin-desktop 3.0.21. Drop stale appdata/zsh mv lines from build() — no longer present in the deb. Update updater to use dynamic deb_path from the Packages index, remove .SRCINFO auto-update (now handled manually), reset pkgrel=1 on each bump, and switch build hint to paru -Bi. Add pkg/ to cleanup. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
parent
e442e6a9aa
commit
ea2e327511
+5
-12
@@ -21,6 +21,7 @@ echo "Current PKGBUILD version: $current_ver"
|
||||
echo "Checking Devin repository..."
|
||||
latest_info=$(curl -s "https://windsurf-stable.codeiumdata.com/wVxQEIWkwPUEAGf3/apt/dists/stable/main/binary-amd64/Packages.gz" | zcat)
|
||||
latest_ver=$(echo "$latest_info" | grep -A1 "Package: devin-desktop" | grep "Version:" | head -1 | sed 's/Version: \([0-9.]*\).*/\1/')
|
||||
deb_path=$(echo "$latest_info" | grep -A20 "Package: devin-desktop" | grep "Filename:" | head -1 | sed 's/Filename: //')
|
||||
|
||||
if [[ -z "$latest_ver" ]]; then
|
||||
echo -e "${RED}Error: Could not fetch latest version${NC}"
|
||||
@@ -45,7 +46,7 @@ else
|
||||
fi
|
||||
|
||||
# Download and calculate SHA256
|
||||
deb_url="https://windsurf-stable.codeiumdata.com/wVxQEIWkwPUEAGf3/apt/pool/main/d/devin-desktop/Devin-linux-x64-${latest_ver}.deb"
|
||||
deb_url="https://windsurf-stable.codeiumdata.com/wVxQEIWkwPUEAGf3/apt/${deb_path}"
|
||||
echo ""
|
||||
echo "Downloading ${latest_ver} for SHA256 verification..."
|
||||
echo "URL: $deb_url"
|
||||
@@ -65,13 +66,10 @@ echo ""
|
||||
echo "Proposed changes:"
|
||||
echo " PKGBUILD: pkgver=$latest_ver"
|
||||
echo " PKGBUILD: sha256sums=('$new_sha256' ...)"
|
||||
echo " .SRCINFO: pkgver = $latest_ver"
|
||||
echo " .SRCINFO: source = ...Devin-linux-x64-${latest_ver}.deb"
|
||||
echo " .SRCINFO: sha256sums = $new_sha256"
|
||||
echo ""
|
||||
|
||||
# Ask for confirmation
|
||||
read -p "Update PKGBUILD and .SRCINFO? [Y/n] " -n 1 -r
|
||||
read -p "Update PKGBUILD? [Y/n] " -n 1 -r
|
||||
echo ""
|
||||
|
||||
if [[ ! $REPLY =~ ^[Yy]$ ]] && [[ -n $REPLY ]]; then
|
||||
@@ -83,14 +81,9 @@ fi
|
||||
echo "Updating PKGBUILD..."
|
||||
sed -i "s/^pkgver=.*/pkgver=$latest_ver/" "$PKGBUILD"
|
||||
sed -i "s/sha256sums=('[^']*'/sha256sums=('$new_sha256'/" "$PKGBUILD"
|
||||
|
||||
# Update .SRCINFO
|
||||
echo "Updating .SRCINFO..."
|
||||
sed -i "s/pkgver = .*/pkgver = $latest_ver/" "$SRCINFO"
|
||||
sed -i "s|Devin-linux-x64-[0-9.]*\.deb|Devin-linux-x64-${latest_ver}.deb|" "$SRCINFO"
|
||||
sed -i "s/sha256sums = [a-f0-9]*/sha256sums = $new_sha256/" "$SRCINFO"
|
||||
sed -i "s/^pkgrel=.*/pkgrel=1/" "$PKGBUILD"
|
||||
|
||||
echo -e "${GREEN}Updated to version $latest_ver${NC}"
|
||||
echo ""
|
||||
echo "Review changes with: git diff"
|
||||
echo "Build with: makepkg -si"
|
||||
echo "Build with: paru -Bi ."
|
||||
|
||||
Reference in New Issue
Block a user