This is a fork of the reference WSL image builder, configured for my ideal archlinux setup - with WSL2 and Genie!
-
Set up a signing certificate, easiest via the
New-SelfSignedCertificate
command. For example:New-SelfSignedCertificate -Type Custom -Subject "CN=Common Name, O=Organisation, L=Somewhere, C=Country" -KeyUsage DigitalSignature -FriendlyName "Friendly Name" -CertStoreLocation "Cert:\CurrentUser\My" -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.3", "2.5.29.19={text}")
-
Run
sudo get_rootfs.sh
on an archlinux host to getinstall.tar.gz
, this must be copied to./x64/install.tar.gz
.Note the archlinux host must have the necessary dependencies:
python-markdown
arch-install-scripts
-
Run
build.bat
to get the appx package. You may specifybuilt.bat rel
to get a release build. -
Install the package appx package. For example, via powershell:
AppPackages\arch\arch_1.0.4.0_x64_Test\Add-AppDevPackage.ps1
Note: It seems that powershell core does not like this script.