Skip to content

Commit

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

Windows service to send CPU info to the device.

After building the executable with cargo, create a `hw-gauge` folder in
`Program Files`, and copy `hw-gauge-winsvc.exe` into it.
### Building

Then run the following command from an Administrator PowerShell prompt:
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
```

### Installation

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

Run the following command from an Administrator PowerShell prompt to register
the service:

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

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

## firmware

Firmware for [LilyGO T-Display RP2040] boards. It should be relatively easy to
modify for a regular Pi Pico with a ST7789 SPI display.

## Notes

This project does not use a cargo workspace as building for different targets
does not work well within them. This may change after
[#9030](https://github.com/rust-lang/cargo/pull/9030) is merged.

[LilyGO T-Display RP2040]: https://github.com/Xinyuan-LilyGO/LILYGO-T-display-RP2040

0 comments on commit af3a087

Please sign in to comment.