ArchWSL
ArchWSL copied to clipboard
Proposal to change release asset naming convention
Currently there doesn't seem to be a package manager that can simplify ArchWSL installation.
So, I'm trying to write a script that makes the initial installation convenient.
However, due to the asset naming on the current release page, it is difficult for the script to always import the latest version of the appx and cer files.
According to the following article, you can always download the latest version of an asset using the /releases/latest suffix, but an additional asset name is requested. https://docs.github.com/en/repositories/releasing-projects-on-github/linking-to-releases
If you change the asset naming as below
ArchWSL-AppX_22.10.16.0_x64.appx -> ArchWSL-AppX_x64.appx
ArchWSL-AppX_22.10.16.0_x64.cer -> ArchWSL-AppX_x64.cer
ArchWSL_Online-AppX_22.10.16.0_x64.appx -> ArchWSL_Online-AppX_x64.appx
ArchWSL_Online-AppX_22.10.16.0_x64.cer -> ArchWSL_Online-AppX_x64.cer
You can change the script to always install the latest version as follows.
Invoke-WebRequest -URI https://github.com/yuk7/ArchWSL/releases/latest/download/ArchWSL_Online-AppX_x64.cer -OutFile arch.cer
Invoke-WebRequest -URI https://github.com/yuk7/ArchWSL/releases/latest/download/ArchWSL_Online-AppX_x64.appx -OutFile arch.appx
Import-Certificate -FilePath .\arch.cer -CertStoreLocation Cert:\LocalMachine\TrustedPeople
Add-AppxPackage -Path .\arch.appx
After making this change, you can still download the specific version of the file.
For example, if you need to download version 22.10.16.0
Invoke-WebRequest -URI https://github.com/yuk7/ArchWSL/releases/download/22.10.16.0/ArchWSL_Online-AppX_x64.cer -OutFile arch.cer
Invoke-WebRequest -URI https://github.com/yuk7/ArchWSL/releases/download/22.10.16.0/ArchWSL_Online-AppX_x64.appx -OutFile arch.appx
Is this change possible? Or are there any problems that the change might cause? Thank you for your consideration of this suggestion :)
p.s. I am a non-English speaking user, so please forgive my poor English.
I forgot that scoop is supported, But still, please review the suggestions above.