16 lines
697 B
Bash
16 lines
697 B
Bash
#!/usr/bin/env bash
|
|
set -ex
|
|
|
|
# If you require a specific version of Upscayl - rather than the latest - it can be
|
|
# hardcoded by setting this variable and rebuilding the container.
|
|
#UPSCAYL_VERSION="3.2.1"https://github.com/upscayl/upscayl/releases/download/v2.9.1/upscayl-2.9.1-linux.deb
|
|
|
|
if [ -z ${UPSCAYL_VERSION+x} ]
|
|
then
|
|
UPSCAYL_VERSION=$(curl -sL https://github.com/upscayl/upscayl/releases/latest/download/latest-linux.yml | grep version | grep -oP 'version: \K[0-9.]+')
|
|
fi
|
|
curl -o /tmp/upscayl.deb -L "https://github.com/upscayl/upscayl/releases/download/v${UPSCAYL_VERSION}/upscayl-${UPSCAYL_VERSION}-linux.deb"
|
|
dpkg -i /tmp/upscayl.deb
|
|
|
|
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
|