first commit.

This commit is contained in:
2024-01-15 00:14:47 +08:00
commit 8f45032f34
16 changed files with 392 additions and 0 deletions

18
scripts/build.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
which idf.py >/dev/null || {
source ~/export-esp.sh >/dev/null 2>&1
}
case "$1" in
"" | "release")
cargo build --release
;;
"debug")
cargo build
;;
*)
echo "Wrong argument. Only \"debug\"/\"release\" arguments are supported"
exit 1
;;
esac