DevKitty-io / USB-Nugget

Run DuckyScript payloads on a USB Nugget!
https://usbnugget.com
MIT License
156 stars 18 forks source link

Add build/flash scripting and use it for CI #36

Closed brandonpaiz closed 2 years ago

brandonpaiz commented 2 years ago

Created scripting around building the project, flashing the device, and generating release binaries. CI uses these scripts to determine if the PR/commit is green.

# building
sudo make build

# flashing
sudo make flash

# flashing, optionally provide the following args
sudo make flash PORT=<port> RESET_SCRIPTS_DURING_FLASH=<true/false>

# Generate release binary
sudo make generate_img