Skip to content

How to generate AI-on-the-edge-device__update__vxxxxxx.zip for local development? #3061

Answered by jasaw
jasaw asked this question in Ideas
Discussion options

You must be logged in to vote

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.

#!/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…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@SybexX
Comment options

SybexX May 5, 2024
Collaborator

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jasaw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants