Skip to content

Commit

Permalink
readme: Update Windows install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
jhillyerd committed Nov 14, 2023
1 parent 4708020 commit 1ccb377
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,37 @@ A simple Linux daemon to send CPU info to the device.

Windows service to send CPU info to the device.

### Building

If you don't already have a Rust MSVC toolchain installed, install the
VisualStudio Build Tools with the `Desktop development with C++` option
enabled. Then install `rustup`, and finally close+reopen PowerShell to load
the updated PATH:

```powershell
winget install Microsoft.VisualStudio.2022.BuildTools
winget install Rustlang.Rustup
exit
```

Build the service executable:

```powershell
cd daemon\windows
cargo build -r
```

After building the executable with cargo, create a `hw-gauge` folder in
`Program Files`, and copy `hw-gauge-winsvc.exe` into it.
`C:\Program Files`, and copy `target\release\hw-gauge-winsvc.exe` into it.

Then run the following command from an Administrator PowerShell prompt:

```powershell
new-service -name "hw-gauge-winsvc" -binarypathname "C:\Program Files\hw-gauge\hw-gauge-winsvc.exe"
```

You may use `services.msc` to start the newly added service.

## firmware

Firmware for [LilyGO T-Display RP2040] boards. It should be relatively easy to
Expand Down

0 comments on commit 1ccb377

Please sign in to comment.