Skip to content

High performance self-hosted photo and video management solution.

1.2 KB
Raw Blame
#!/usr/bin/env bash

set -e

if [ -n "$1" ]; then # the packages go to the directory given, which can be kept between runs, or to a temporary one
  dir=$1
else
  dir=$(mktemp -d)
  trap 'rm -rf "$dir"' EXIT
fi
mkdir -p "$dir"
cd "$dir"
urls=(
  https://github.com/intel/intel-graphics-compiler/releases/download/v2.41.5/intel-igc-core-2_2.41.5+22716_amd64.deb
  https://github.com/intel/intel-graphics-compiler/releases/download/v2.41.5/intel-igc-opencl-2_2.41.5+22716_amd64.deb
  https://github.com/intel/compute-runtime/releases/download/26.35.39758.10/intel-opencl-icd_26.35.39758.10-0_amd64.deb
  https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.17537.24/intel-igc-core_1.0.17537.24_amd64.deb
  https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.17537.24/intel-igc-opencl_1.0.17537.24_amd64.deb
  https://github.com/intel/compute-runtime/releases/download/24.35.30872.36/intel-opencl-icd-legacy1_24.35.30872.36_amd64.deb
  # TODO: Figure out how to get renovate to manage the differently versioned libigdgmm file
  https://github.com/intel/compute-runtime/releases/download/26.35.39758.10/libigdgmm12_22.10.0_amd64.deb
)
for url in "${urls[@]}"; do
  [ -f "${url##*/}" ] || curl -fsSLO "$url"
done
dpkg -i "${urls[@]##*/}"