mirror of
https://github.com/kasmtech/workspaces-core-images.git
synced 2025-01-09 14:48:11 +01:00
Resolve KASM-3119 "Feature/ sendfullframe kasmvnc"
This commit is contained in:
parent
0c5506f96b
commit
8b22677ff8
@ -13,18 +13,25 @@ cd /tmp
|
|||||||
|
|
||||||
BUILD_ARCH=$(uname -p)
|
BUILD_ARCH=$(uname -p)
|
||||||
UBUNTU_CODENAME=""
|
UBUNTU_CODENAME=""
|
||||||
COMMIT_ID="924329900dd6942a3336992ad7534a640c7e264d"
|
COMMIT_ID="a5b9d75d63f40a62641fc0e6fa1a176ae281115f"
|
||||||
BRANCH="master"
|
BRANCH="release"
|
||||||
|
KASMVNC_VER="0.9.3.1"
|
||||||
COMMIT_ID_SHORT=$(echo "${COMMIT_ID}" | cut -c1-6)
|
COMMIT_ID_SHORT=$(echo "${COMMIT_ID}" | cut -c1-6)
|
||||||
|
|
||||||
|
# Naming scheme is now different between an official release and feature branch
|
||||||
|
KASM_VER_NAME_PART="${KASMVNC_VER}_${BRANCH}_${COMMIT_ID_SHORT}"
|
||||||
|
if [[ "${BRANCH}" == "release" ]] ; then
|
||||||
|
KASM_VER_NAME_PART="${KASMVNC_VER}"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${DISTRO}" == "kali" ] ;
|
if [ "${DISTRO}" == "kali" ] ;
|
||||||
then
|
then
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y sgml-base
|
apt-get install -y sgml-base
|
||||||
if [[ "$(arch)" =~ ^x86_64$ ]] ; then
|
if [[ "$(arch)" =~ ^x86_64$ ]] ; then
|
||||||
BUILD_URL="https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/${COMMIT_ID}/kasmvncserver_kali-rolling_0.9.3_${BRANCH}_${COMMIT_ID_SHORT}_amd64.deb"
|
BUILD_URL="https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/${COMMIT_ID}/kasmvncserver_kali-rolling_${KASM_VER_NAME_PART}_amd64.deb"
|
||||||
else
|
else
|
||||||
BUILD_URL="https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/${COMMIT_ID}/kasmvncserver_kali-rolling_0.9.3_${BRANCH}_${COMMIT_ID_SHORT}_arm64.deb"
|
BUILD_URL="https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/${COMMIT_ID}/kasmvncserver_kali-rolling_${KASM_VER_NAME_PART}_arm64.deb"
|
||||||
fi
|
fi
|
||||||
elif [[ "${DISTRO}" == @(centos|oracle7) ]] ; then
|
elif [[ "${DISTRO}" == @(centos|oracle7) ]] ; then
|
||||||
BUILD_URL="https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/${COMMIT_ID}/output/centos_core/kasmvncserver-0.9.3~beta-1.el7.x86_64.rpm"
|
BUILD_URL="https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/${COMMIT_ID}/output/centos_core/kasmvncserver-0.9.3~beta-1.el7.x86_64.rpm"
|
||||||
@ -43,11 +50,11 @@ elif [[ "${DISTRO}" == "opensuse" ]] ; then
|
|||||||
else
|
else
|
||||||
UBUNTU_CODENAME=$(grep -Po -m 1 "(?<=_CODENAME=)\w+" /etc/os-release)
|
UBUNTU_CODENAME=$(grep -Po -m 1 "(?<=_CODENAME=)\w+" /etc/os-release)
|
||||||
if [[ "${BUILD_ARCH}" =~ ^aarch64$ ]] ; then
|
if [[ "${BUILD_ARCH}" =~ ^aarch64$ ]] ; then
|
||||||
BUILD_URL="https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/${COMMIT_ID}/kasmvncserver_${UBUNTU_CODENAME}_0.9.3_${BRANCH}_${COMMIT_ID_SHORT}_arm64.deb"
|
BUILD_URL="https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/${COMMIT_ID}/kasmvncserver_${UBUNTU_CODENAME}_${KASM_VER_NAME_PART}_arm64.deb"
|
||||||
elif [ "${UBUNTU_CODENAME}" == "bionic" ] ; then
|
elif [ "${UBUNTU_CODENAME}" == "bionic" ] ; then
|
||||||
BUILD_URL="https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/${COMMIT_ID}/kasmvncserver_${UBUNTU_CODENAME}_0.9.3_${BRANCH}_${COMMIT_ID_SHORT}_libjpeg-turbo-latest_amd64.deb"
|
BUILD_URL="https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/${COMMIT_ID}/kasmvncserver_${UBUNTU_CODENAME}_${KASM_VER_NAME_PART}_libjpeg-turbo-latest_amd64.deb"
|
||||||
else
|
else
|
||||||
BUILD_URL="https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/${COMMIT_ID}/kasmvncserver_${UBUNTU_CODENAME}_0.9.3_${BRANCH}_${COMMIT_ID_SHORT}_amd64.deb"
|
BUILD_URL="https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/${COMMIT_ID}/kasmvncserver_${UBUNTU_CODENAME}_${KASM_VER_NAME_PART}_amd64.deb"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user