2020-10-07 13:49:40 +05:00
|
|
|
#!/bin/bash -e
|
2019-12-13 09:48:00 -05:00
|
|
|
################################################################################
|
2022-09-14 17:37:36 +02:00
|
|
|
## File: mono.sh
|
2019-12-13 09:48:00 -05:00
|
|
|
## Desc: Installs Mono
|
|
|
|
|
################################################################################
|
|
|
|
|
|
2022-07-25 13:26:39 +04:00
|
|
|
source $HELPER_SCRIPTS/os.sh
|
|
|
|
|
|
2019-12-13 09:48:00 -05:00
|
|
|
LSB_CODENAME=$(lsb_release -cs)
|
|
|
|
|
|
2022-07-25 13:26:39 +04:00
|
|
|
# There are no packages for Ubuntu 22 in the repo, but developers confirmed that packages from Ubuntu 20 should work
|
|
|
|
|
if isUbuntu22; then
|
|
|
|
|
LSB_CODENAME="focal"
|
|
|
|
|
fi
|
|
|
|
|
|
2019-12-13 09:48:00 -05:00
|
|
|
# Test to see if the software in question is already installed, if not install it
|
|
|
|
|
# wget "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" -O out && sudo apt-key add out && rm out
|
|
|
|
|
|
|
|
|
|
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
|
|
|
|
|
echo "deb https://download.mono-project.com/repo/ubuntu stable-$LSB_CODENAME main" | tee /etc/apt/sources.list.d/mono-official-stable.list
|
|
|
|
|
apt-get update
|
2020-08-28 08:25:01 +01:00
|
|
|
apt-get install -y --no-install-recommends apt-transport-https mono-complete nuget
|
2019-12-13 09:48:00 -05:00
|
|
|
|
2021-05-21 12:34:41 +05:00
|
|
|
rm /etc/apt/sources.list.d/mono-official-stable.list
|
|
|
|
|
rm -f /etc/apt/sources.list.d/mono-official-stable.list.save
|
|
|
|
|
echo "mono https://download.mono-project.com/repo/ubuntu stable-$LSB_CODENAME main" >> $HELPER_SCRIPTS/apt-sources.txt
|
|
|
|
|
|
2020-12-29 10:02:46 +03:00
|
|
|
invoke_tests "Tools" "Mono"
|