From 199d0bafc6f91174f3cd11a18cf262c1e1860209 Mon Sep 17 00:00:00 2001 From: roylaurie Date: Tue, 7 May 2024 21:34:10 -0700 Subject: [PATCH] building guide --- Building.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Building.md b/Building.md index 4ad29d9..275d443 100644 --- a/Building.md +++ b/Building.md @@ -65,4 +65,20 @@ snapcraft ```bash # for each linux rust TARGET, after compiling ... cargo generate-rpm --target=$TARGET -``` \ No newline at end of file +``` + + +## Building for Windows + +1. Install a Windows 11 VM. +2. Update system. +2. Install the OpenSSH Server feature: + - Reference: https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse + 1. Settings > System > Features > View Features > Add Feature > "OpenSSH Server" + 2. Services > "OpenSSH Server" > Properties > Start: Automatically +3. To configure Powershell as the default shell: + 1. SSH into Windows + 2. Run: `powershell` + 3. Run: `New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force` +4. Install: + - rust (rustup) \ No newline at end of file