@@ -5,19 +5,29 @@ updatesdir=../updates/
55buildfile=" $builddir " /lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin
66updatefile=../lvgl_micropython/lib/micropython/ports/esp32/build-ESP32_GENERIC_S3-SPIRAM_OCT/micropython.bin
77
8+ version=$( grep CURRENT_OS_VERSION internal_filesystem/lib/mpos/info.py| cut -d" =" -f 2| tr -d" " | tr -d' "' )
9+
10+ overwrite=" $1 "
11+ if [" $overwrite " != " --overwrite" ]&& ls" $outdir " /* " $version " * 2> /dev/null; then
12+ echo " WARNING:$version already exists, use --overwrite to overwrite it"
13+ exit 1
14+ fi
15+
16+ exit 0
17+
818./scripts/build_lvgl_micropython.sh esp32 prod fri3d-2024
9- cp" $buildfile " " $outdir " /MicroPythonOS_fri3d-2024_prod
10- cp" $updatefile " " $updatesdir " /MicroPythonOS_fri3d-2024_prod .ota
19+ cp" $buildfile " " $outdir " /MicroPythonOS_fri3d-2024_prod_ " $version " .bin
20+ cp" $updatefile " " $updatesdir " /MicroPythonOS_fri3d-2024_prod_ " $version " .ota
1121
1222./scripts/build_lvgl_micropython.sh esp32 dev fri3d-2024
13- cp" $buildfile " " $outdir " /MicroPythonOS_fri3d-2024_dev
23+ cp" $buildfile " " $outdir " /MicroPythonOS_fri3d-2024_dev_ " $version " .bin
1424
1525./scripts/build_lvgl_micropython.sh esp32 prod waveshare-esp32-s3-touch-lcd-2
16- cp" $buildfile " " $outdir " /MicroPythonOS_waveshare-esp32-s3-touch-lcd-2_prod
17- cp" $updatefile " " $updatesdir " /MicroPythonOS_waveshare-esp32-s3-touch-lcd-2_prod .ota
26+ cp" $buildfile " " $outdir " /MicroPythonOS_waveshare-esp32-s3-touch-lcd-2_prod_ " $version " .bin
27+ cp" $updatefile " " $updatesdir " /MicroPythonOS_waveshare-esp32-s3-touch-lcd-2_prod_ " $version " .ota
1828
1929./scripts/build_lvgl_micropython.sh esp32 dev waveshare-esp32-s3-touch-lcd-2
20- cp" $buildfile " " $outdir " /MicroPythonOS_waveshare-esp32-s3-touch-lcd-2_dev
30+ cp" $buildfile " " $outdir " /MicroPythonOS_waveshare-esp32-s3-touch-lcd-2_dev_ " $version " .bin
2131
2232./scripts/build_lvgl_micropython.sh unix dev
23- cp" $builddir " /lvgl_micropy_unix" $outdir " /MicroPythonOS_amd64_Linux
33+ cp" $builddir " /lvgl_micropy_unix" $outdir " /MicroPythonOS_amd64_linux_ " $version " .elf