Merge branch 'bugfix/KASM-8051-fix_pinta_installation_develop' into 'develop'

KASM-8051 pin pinta version to 3.0.5

Closes KASM-8051

See merge request kasm-technologies/internal/workspaces-images!395
This commit is contained in:
Richard Koliser 2026-01-07 18:30:57 +00:00
commit 2afd833762

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}