AlpineWSL icon indicating copy to clipboard operation
AlpineWSL copied to clipboard

installer should set Name alpine versioned, e.g. "Alpine-3.15.0"

Open jtmoon79 opened this issue 2 years ago • 2 comments

Currently, installing alpine results in a new wsl.exe --list --verbose entry named Alpine.

Using release 3.1.5.0, for example:

PS> Invoke-WebRequest https://github.com/yuk7/AlpineWSL/releases/download/3.15.0-0/Alpine.zip -out Alpine.zip

PS> Expand-Archive Alpine.zip

PS> cd Alpine

PS> .\Alpine.exe
Using: .\rootfs.tar.gz
Installing...
Installation complete
Press enter to continue...

PS> wsl.exe --list --verbose
  NAME                   STATE           VERSION
  Alpine                 Stopped         2
  ...

I would like to be able to install Alpine releases "side by side". However, I presume they will both use WSL entry name Alpine (and overwrite the other). Also, having the Alpine version as part of the WSL name is informative.

I would prefer

PS> wsl.exe --list --verbose
  NAME                   STATE           VERSION
  Alpine-3.15.0-0        Stopped         2
  ...

jtmoon79 avatar Mar 22 '22 22:03 jtmoon79

Relates to WSL #4241.

jtmoon79 avatar Mar 22 '22 22:03 jtmoon79

I think this is good, but it may break some automated scripts. This project uses its own launcher, so you can rename the exe file and rename the instance.

rename Alpine.exe Alpine-3.15.0-0.exe
Alpine-3.15.0-0.exe

yuk7 avatar Mar 22 '22 22:03 yuk7