From a903bc71f451a8683df8fe200d280b22ff45a32d Mon Sep 17 00:00:00 2001 From: Teja Swaroop Pothala Date: Tue, 30 Dec 2025 03:41:16 +0000 Subject: [PATCH] KASM-8051 pin pinta version to 3.0.5 --- src/ubuntu/install/pinta/install_pinta.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ubuntu/install/pinta/install_pinta.sh b/src/ubuntu/install/pinta/install_pinta.sh index fe4be84..9dd73e7 100644 --- a/src/ubuntu/install/pinta/install_pinta.sh +++ b/src/ubuntu/install/pinta/install_pinta.sh @@ -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}