Previously present in the older batch (.cmd) script, this functionality needs to be redone in C#.
This includes enabling WSL with DismApi, detecting if a distro is installed, downloading distrod, and installing and configuring a distro.
It should be able to download distro from either a permalink (like from aka.ms), or from a Microsoft Store link. Previously the latter was done using store.rg-adguard.net (Possible C# implementation), however it would be ideal to do it without store.rg, as that is not totally reliable, and can have Cloudflare DDoS protection active at certain times, which blocks API requests.
Possibly this could be done with winget, similar to how FluentStore does it.
Fetching the download links from something like links.txt is optional, but allows for updating links without making a new release. Make sure the latest Ubuntu WSL version is included.
Previously present in the older batch (`.cmd`) script, this functionality needs to be redone in C#.
This includes enabling WSL with DismApi, detecting if a distro is installed, downloading distrod, and installing and configuring a distro.
It should be able to download distro from either a permalink (like from `aka.ms`), or from a Microsoft Store link. Previously the latter was done using store.rg-adguard.net ([Possible C# implementation](https://github.com/Fiz-Victor/Windows-Store-Downloader)), however it would be ideal to do it without store.rg, as that is not totally reliable, and can have Cloudflare DDoS protection active at certain times, which blocks API requests.
Possibly this could be done with winget, similar to how [FluentStore](https://github.com/yoshiask/FluentStore) does it.
Fetching the download links from something like [links.txt](https://git.ameliorated.info/Styris/amecs/src/branch/master/links.txt) is optional, but allows for updating links without making a new release. Make sure the latest Ubuntu WSL version is included.
This page has some useful information, including more download links:
https://learn.microsoft.com/en-us/windows/wsl/install-manual
Previously present in the older batch (
.cmd
) script, this functionality needs to be redone in C#.This includes enabling WSL with DismApi, detecting if a distro is installed, downloading distrod, and installing and configuring a distro.
It should be able to download distro from either a permalink (like from
aka.ms
), or from a Microsoft Store link. Previously the latter was done using store.rg-adguard.net (Possible C# implementation), however it would be ideal to do it without store.rg, as that is not totally reliable, and can have Cloudflare DDoS protection active at certain times, which blocks API requests.Possibly this could be done with winget, similar to how FluentStore does it.
Fetching the download links from something like links.txt is optional, but allows for updating links without making a new release. Make sure the latest Ubuntu WSL version is included.
This page has some useful information, including more download links:
https://learn.microsoft.com/en-us/windows/wsl/install-manual