KASM-8051 pin pinta version to 3.0.5

This commit is contained in:
Teja Swaroop Pothala 2025-12-30 03:41:16 +00:00
parent d160a67fd5
commit 5eefa90fa1
No known key found for this signature in database
GPG key ID: FA5E53D328E228D2

View file

@ -10,8 +10,14 @@ if grep -q Jammy /etc/os-release || grep -q Noble /etc/os-release; then
apt-get install -y libgtk-3-dev
apt install -y autotools-dev autoconf-archive gettext intltool libadwaita-1-dev jq build-essential
# download and install pinta latest non-beta version from source. Use GitHub API to get the latest non-beta release
PINTA_VERSION=$(curl -s https://api.github.com/repos/PintaProject/Pinta/releases | jq -r '[.[] | select(.prerelease == false and (.name | test("(?i)beta") | not))][0].tag_name')
PINTA_DOWNLOAD_URL=$(curl -s https://api.github.com/repos/PintaProject/Pinta/releases | jq -r '[.[] | select(.prerelease == false and (.name | test("(?i)beta") | not))][0].assets[] | select(.name | endswith(".tar.gz")).browser_download_url')
# PINTA_VERSION=$(curl -s https://api.github.com/repos/PintaProject/Pinta/releases | jq -r '[.[] | select(.prerelease == false and (.name | test("(?i)beta") | not))][0].tag_name')
# PINTA_DOWNLOAD_URL=$(curl -s https://api.github.com/repos/PintaProject/Pinta/releases | jq -r '[.[] | select(.prerelease == false and (.name | test("(?i)beta") | not))][0].assets[] | select(.name | endswith(".tar.gz")).browser_download_url')
# Pin pinta version to 3.0.5 to avoid dependency issues with libadwaita-1 on Noble and Jammy
PINTA_VERSION="3.0.5"
PINTA_DOWNLOAD_URL="https://github.com/PintaProject/Pinta/releases/download/3.0.5/pinta-3.0.5.tar.gz"
wget -q ${PINTA_DOWNLOAD_URL} -O /tmp/pinta-${PINTA_VERSION}.tar.gz
tar -xvzf /tmp/pinta-${PINTA_VERSION}.tar.gz -C /tmp
cd /tmp/pinta-${PINTA_VERSION}