6 lines
349 B
Bash
Executable File
6 lines
349 B
Bash
Executable File
#!/bin/sh
|
|
|
|
idf.py build && \
|
|
curl -k -X POST https://localhost:8443/web_api/ota/Wt32-Eth01/$(cat version.txt) --form firmware="@build/main.bin" && \
|
|
curl -k -X POST https://localhost:8443/web_api/ota/set_desired_version --header "Content-Type: application/json" --data "{\"platform\": \"Wt32-Eth01\", \"version\": \"$(cat version.txt)\"}"
|