Skip to content

Commit

Permalink
Add Ubuntu2204 (#12)
Browse files Browse the repository at this point in the history
* Add option to install Ubuntu 22.04

* rm opinionated recommendation
  • Loading branch information
Layer8Err authored Jul 20, 2022
1 parent a803d04 commit ed2aad6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion WSL2_Install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ function Select-Distro () {
# See: https://docs.microsoft.com/en-us/windows/wsl/install-manual
# You can also use https://store.rg-adguard.net to get Appx links from Windows Store links
$distrolist = (
[PSCustomObject]@{
'Name' = 'Ubuntu 22.04'
'URI' = 'https://aka.ms/wslubuntu2204'
'AppxName' = 'CanonicalGroupLimited.Ubuntu22.04onWindows'
'winpe' = 'ubuntu2204.exe'
'installed' = $false
},
[PSCustomObject]@{
'Name' = 'Ubuntu 20.04'
'URI' = 'https://aka.ms/wslubuntu2004'
Expand Down Expand Up @@ -246,7 +253,6 @@ function Select-Distro () {
$distrolist | ForEach-Object { $_.installed = Get-WSLExistance($_) }
Write-Host("+------------------------------------------------+")
Write-Host("| Choose your Distro |")
Write-Host("| Ubuntu 18.04 is recommended for Docker on WSL2 |")
Write-Host("+------------------------------------------------+")
For ($i = 0; $i -le ($distrolist.Length - 1); $i++) {
$installedTxt = ""
Expand Down

0 comments on commit ed2aad6

Please sign in to comment.