Skip to content

Commit

Permalink
building guide
Browse files Browse the repository at this point in the history
  • Loading branch information
roylaurie committed May 8, 2024
1 parent 440e595 commit 199d0ba
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion Building.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,20 @@ snapcraft
```bash
# for each linux rust TARGET, after compiling ...
cargo generate-rpm --target=$TARGET
```
```


## 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)

0 comments on commit 199d0ba

Please sign in to comment.