Basic scripts to build from source and run install. Nothing fancy.

This commit is contained in:
BeigeBox
2026-02-07 15:00:15 -08:00
committed by Cooper Quintin
parent 836ec2169d
commit 715efc4b0d
4 changed files with 125 additions and 0 deletions

24
scripts/install-dev.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
# Install a development build of Rayhunter to a device.
# Run ./scripts/build-dev.sh first.
#
# Usage: ./scripts/install-dev.sh <device>
# Example: ./scripts/install-dev.sh orbic
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
cd "$PROJECT_DIR"
DEVICE="${1:-}"
if [ -z "$DEVICE" ]; then
echo "Usage: $0 <device>"
echo ""
echo "Run 'cargo run --bin installer help' for a list of supported devices."
exit 1
fi
FIRMWARE_PROFILE=firmware-devel cargo run -p installer --bin installer -- "$DEVICE"