Add mono package to ubuntu 22 (#5950)

This commit is contained in:
Mikhail Timofeev
2022-07-25 13:26:39 +04:00
committed by GitHub
parent d746320dd3
commit 11cfd9eac0
5 changed files with 17 additions and 3 deletions

View File

@@ -88,6 +88,11 @@ function Get-MsbuildVersion {
return "MSBuild $msbuildVersion (from $msbuildPath)" return "MSBuild $msbuildVersion (from $msbuildPath)"
} }
function Get-NuGetVersion {
$nugetVersion = nuget help | Select-Object -First 1 | Take-OutputPart -Part 2
return "NuGet $nugetVersion"
}
function Get-NodeVersion { function Get-NodeVersion {
$nodeVersion = $(node --version).Substring(1) $nodeVersion = $(node --version).Substring(1)
return "Node $nodeVersion" return "Node $nodeVersion"

View File

@@ -42,6 +42,8 @@ $runtimesList = @(
(Get-DashVersion), (Get-DashVersion),
(Get-CPPVersions), (Get-CPPVersions),
(Get-FortranVersions), (Get-FortranVersions),
(Get-MsbuildVersion),
(Get-MonoVersion),
(Get-NodeVersion), (Get-NodeVersion),
(Get-PerlVersion), (Get-PerlVersion),
(Get-PythonVersion), (Get-PythonVersion),
@@ -56,8 +58,6 @@ $runtimesList = @(
if ((Test-IsUbuntu18) -or (Test-IsUbuntu20)) { if ((Test-IsUbuntu18) -or (Test-IsUbuntu20)) {
$runtimesList += @( $runtimesList += @(
(Get-MsbuildVersion),
(Get-MonoVersion),
(Get-ErlangVersion), (Get-ErlangVersion),
(Get-ErlangRebar3Version), (Get-ErlangRebar3Version),
(Get-SwiftVersion) (Get-SwiftVersion)
@@ -73,6 +73,7 @@ $packageManagementList = @(
(Get-CpanVersion), (Get-CpanVersion),
(Get-GemVersion), (Get-GemVersion),
(Get-MinicondaVersion), (Get-MinicondaVersion),
(Get-NuGetVersion),
(Get-HelmVersion), (Get-HelmVersion),
(Get-NpmVersion), (Get-NpmVersion),
(Get-YarnVersion), (Get-YarnVersion),

View File

@@ -4,8 +4,15 @@
## Desc: Installs Mono ## Desc: Installs Mono
################################################################################ ################################################################################
source $HELPER_SCRIPTS/os.sh
LSB_CODENAME=$(lsb_release -cs) LSB_CODENAME=$(lsb_release -cs)
# 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
# Test to see if the software in question is already installed, if not install it # 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 # wget "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" -O out && sudo apt-key add out && rm out

View File

@@ -168,7 +168,7 @@ Describe "gfortran" {
} }
} }
Describe "Mono" -Skip:(Test-IsUbuntu22) { Describe "Mono" {
It "mono" { It "mono" {
"mono --version" | Should -ReturnZeroExitCode "mono --version" | Should -ReturnZeroExitCode
} }

View File

@@ -300,6 +300,7 @@ build {
"${path.root}/scripts/installers/oc.sh", "${path.root}/scripts/installers/oc.sh",
"${path.root}/scripts/installers/leiningen.sh", "${path.root}/scripts/installers/leiningen.sh",
"${path.root}/scripts/installers/miniconda.sh", "${path.root}/scripts/installers/miniconda.sh",
"${path.root}/scripts/installers/mono.sh",
"${path.root}/scripts/installers/kotlin.sh", "${path.root}/scripts/installers/kotlin.sh",
"${path.root}/scripts/installers/mysql.sh", "${path.root}/scripts/installers/mysql.sh",
"${path.root}/scripts/installers/sqlpackage.sh", "${path.root}/scripts/installers/sqlpackage.sh",