Skip to content

Commit d1cd04a

Browse files
committed
lutris installation for debian trixie, add todo for lutris key change
1 parent 5733f46 commit d1cd04a

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

distro_installers/debian-gaming.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ for arg in "$@" ; do
4242
mumble_install="false"
4343
elif [[ "$arg" = "nodiscord" ]] ; then
4444
discord_install="false"
45-
elif [[ "$arg" = "nvidia" ]] ; then
45+
elif [[ "$arg" = "nvidia" ]] ; then
4646
nvidia_install="true"
4747
elif [[ "$arg" = "amd" ]] ; then
4848
amd_install="true"
@@ -149,6 +149,8 @@ if [ ! -d /root/.aptkeys ] ; then
149149
mkdir /root/.aptkeys
150150
fi
151151
if [[ "${lutris_install}" = "true" && ! -f /root/.aptkeys/LutrisDebian12.key ]] ; then
152+
# TODO: add new key before February 2026:
153+
# Warnung: https://download.opensuse.org/repositories/home:/strycore/Debian_12/./InRelease: Policy will reject signature within a year, see --audit for details
152154
echo "### downloading lutris key"
153155
cd /root/.aptkeys || exit
154156
wget https://download.opensuse.org/repositories/home:/strycore/Debian_12/Release.key -O /root/.aptkeys/LutrisDebian12.key
@@ -176,11 +178,7 @@ fi
176178
if [[ "${lutris_install}" = "true" && "$(sha256sum /root/.aptkeys/LutrisDebian12.key | awk '{print $1}')" = "a77a7f3f09d0952d38bcf7178c84bf3eedbcc9b0d30c362b2a93bae6dff578fc" ]] ; then
177179
echo "### Checksum of Lutris OK, adding key"
178180
cd /root/.aptkeys || exit
179-
if [ -f /root/.aptkeys/LutrisDebian12.key.gpg ] ; then
180-
rm /root/.aptkeys/LutrisDebian12.key.gpg
181-
fi
182-
gpg --dearmor /root/.aptkeys/LutrisDebian12.key
183-
cp /root/.aptkeys/LutrisDebian12.key.gpg /etc/apt/keyrings/lutris.gpg
181+
cat /root/.aptkeys/LutrisDebian12.key | gpg --dearmor /etc/apt/keyrings/lutris.gpg
184182
else
185183
echo "### Aborting: Checksum of Lutris NOT OK!"
186184
exit
@@ -201,7 +199,10 @@ fi
201199
if [ "${lutris_install}" = "true" ] ; then
202200
#add lutris repo
203201
echo "### adding lutris repository"
204-
echo "deb [signed-by=/etc/apt/keyrings/lutris.gpg] https://download.opensuse.org/repositories/home:/strycore/Debian_12/ ./" > /etc/apt/sources.list.d/lutris.list
202+
if [ -f /etc/apt/sources.list.d/lutris.list ] ; then
203+
rm /etc/apt/sources.list.d/lutris.list
204+
fi
205+
echo -e "Types: deb\nURIs: https://download.opensuse.org/repositories/home:/strycore/Debian_12/\nSuites: ./\nComponents: \nSigned-By: /etc/apt/keyrings/lutris.gpg" > /etc/apt/sources.list.d/lutris.sources
205206
fi
206207

207208
echo "### installing dxvk, vkd3d, corefonts, xboxdrv"

0 commit comments

Comments
 (0)