blob: 65f97a9304fc71e00003b53ff959da5a9578674f (
plain)
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
|
#!/bin/bash
# Get latest version from API
echo "Extracting ClickUp version..."
response=$(curl -s -L -D - \
-m 5 \
--max-filesize 1M \
--range 0-1024 \
"https://desktop.clickup.com/linux" \
-o /dev/null)
# Extract version from headers
if [[ $response =~ filename=\"desktop-([0-9]+\.[0-9]+\.[0-9]+) ]]; then
new_version="${BASH_REMATCH[1]}"
echo "✅ New version found: $new_version"
# Update PKGBUILD
sed -i "s/^pkgver=.*$/pkgver=$new_version/" PKGBUILD
echo "✅ PKGBUILD updated to version $new_version"
# Git operations
git add PKGBUILD
git commit -m "feat: update to version $new_version"
echo "✅ Changes committed to git"
else
echo "❌ Unable to extract version"
echo "Headers analysis:"
echo "$response" | grep -i -E "content-|disposition|filename"
exit 1
fi
|