Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd68650c

Browse files
Increment version and improve build_all.sh
1 parent0fe592b commitd68650c

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

‎internal_filesystem/lib/mpos/info.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CURRENT_OS_VERSION="0.1.2"
1+
CURRENT_OS_VERSION="0.2.0"
22

33
# Unique string that defines the hardware, used by OSUpdate and the About app
44
_hardware_id="missing-hardware-info"

‎scripts/build_all.sh‎

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,29 @@ updatesdir=../updates/
55
buildfile="$builddir"/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin
66
updatefile=../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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp