From 469a716b7c4c0a40ede022dc1a4505c50c740c42 Mon Sep 17 00:00:00 2001 From: Cooper Quintin Date: Mon, 28 Apr 2025 17:19:46 -0700 Subject: [PATCH] add make script using docker --- docker_make.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 docker_make.sh diff --git a/docker_make.sh b/docker_make.sh new file mode 100755 index 0000000..8af7f00 --- /dev/null +++ b/docker_make.sh @@ -0,0 +1,10 @@ +#!/bin/bash -e +pushd bin/web + npm run build +popd +#docker build -t rayhunter-devenv -f tools/devenv.dockerfile . +docker run --user $UID:$GID -v ./:/workdir -w /workdir -it rayhunter-devenv sh -c 'cargo build --release --target="armv7-unknown-linux-gnueabihf"' +adb shell '/bin/rootshell -c "/etc/init.d/rayhunter_daemon stop"' +adb push target/armv7-unknown-linux-gnueabihf/release/rayhunter-daemon /data/rayhunter/rayhunter-daemon +echo "rebooting the device..." +adb shell '/bin/rootshell -c "reboot"'