-
I know how to compile and generate Can someone please give me some guidance on this? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
github does it automatically https://github.com/jasaw/AI-on-the-edge-device/actions/runs/8951350224 or do you mean on the pc |
Beta Was this translation helpful? Give feedback.
-
Yes, I mean generating the zip file on my development PC. This is what I understand so far:
I uploaded this zip file to my esp32 but it complained the firmware file is corrupted. I removed the firmware file from the zip but it did not update any of the html file on the device. What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
-
@SybexX Thank you for pointing out the |
Beta Was this translation helpful? Give feedback.
-
For anyone who is interested, here's my script to package my development files into OTA upgrade zip file. It creates a #!/bin/sh
sha_short=$(git rev-parse --short HEAD)
rm -rf ./html
mkdir html
cp -r ./sd-card/html/* ./html/
mkdir html/param-tooltips
cd tools/parameter-tooltip-generator
python generate-param-doc-tooltips.py
cd ../..
cp -r ./sd-card/html/* ./html/
echo "Replacing variables..."
cd html; find . -type f -exec sed -i "s/\$COMMIT_HASH/${sha_short}/g" {} \;
cd ..
rm -rf ./update
mkdir -p ./update
cp "./code/.pio/build/esp32cam/firmware.bin" "update/firmware.bin"
cp -r ./html ./update/
rm -rf ./update/config/
mkdir -p ./update/config/
cp ./sd-card/config/*.tfl ./update/config/ 2>/dev/null || true
cp ./sd-card/config/*.tflite ./update/config/ 2>/dev/null || true
rm -rf debug
mkdir -p debug
cd ./update
zip -r ../debug/AI-on-the-edge-device__update__debug.zip .
|
Beta Was this translation helpful? Give feedback.
For anyone who is interested, here's my script to package my development files into OTA upgrade zip file. It creates a
debug
directory and puts the zip file in there.