Skip to content

Debian 9

Morten Møller edited this page Jun 19, 2021 · 1 revision

Debian 9 installation

Found this tutorial on Microsoft's website: https://docs.microsoft.com/en-us/dotnet/core/install/linux-debian#debian-9-

wget -O - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
wget https://packages.microsoft.com/config/debian/9/prod.list
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list

sudo apt-get update; \
  sudo apt-get install -y apt-transport-https && \
  sudo apt-get update && \
  sudo apt-get install -y dotnet-sdk-5.0

Once that's done, go ahead and clone the project, then compile your binary:

git clone https://github.com/mortenmoulder/TwitchClipper.git

cd TwitchClipper

dotnet publish -c Release -o publish -p:PublishReadyToRun=true -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true -p:IncludeNativeLibrariesForSelfExtract=true --runtime linux-x64 TwitchClipper.sln

cd publish

./TwitchClipper -u TWITCH_USERNAME