# Building a binary

Builds are focused on Windows - but we have started to work on a MacOS build.&#x20;

**For Windows**

You need [nsis](http://nsis.sourceforge.io/) installed and install SimpleSC Plugin: <https://nsis.sourceforge.io/NSIS_Simple_Service_Plugin>. \
\
Then

```
pip install -r requirements.txt
pip install -r equirements-build.txt 
python build.py 
```

You will then get a setup.exe

If you wish to create a UF2 file for the firmware we follow [this guide ](https://learn.adafruit.com/adafruit-metro-m0-express/uf2-bootloader-details#entering-bootloader-mode-2929745)(see "Making your own UF2") - making note that we are on M4 based boards.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.acecentre.org.uk/products/relaykeys/developers/building-a-binary.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
