mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Because it is red (because nuget doesn't accept old TLS connections, and only newer versions of Mono support newer TLS versions)
18 lines
604 B
Bash
Executable file
18 lines
604 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euxo pipefail
|
|
|
|
source /etc/os-release
|
|
|
|
# required by apt-key
|
|
apt install -y gnupg2
|
|
# required by apt-update when pulling from mono-project.com
|
|
apt install -y ca-certificates
|
|
|
|
# taken from http://www.mono-project.com/download/stable/#download-lin
|
|
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
|
|
echo "deb https://download.mono-project.com/repo/ubuntu stable-$UBUNTU_CODENAME main" | tee /etc/apt/sources.list.d/mono-official-stable.list
|
|
|
|
apt update
|
|
DEBIAN_FRONTEND=noninteractive apt install -y mono-devel
|
|
mono --version
|