From 7cd208411d97e7653042fa5e67370a3abc39d6bf Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Wed, 7 May 2025 16:10:55 +0200 Subject: [PATCH] install.sh: fix install for builtin apps --- scripts/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index fdde4212..81389b28 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -16,15 +16,17 @@ pushd internal_filesystem/ if [ ! -z "$appname" ]; then echo "Installing one app: $appname" appdir="apps/com.example.$appname/" + target="apps/" if [ ! -d "$appdir" ]; then echo "$appdir doesn't exist so taking the builtin/" appdir="builtin/apps/com.example.$appname/" + target="builtin/apps/" if [ ! -d "$appdir" ]; then echo "$appdir also doesn't exist, exiting..." exit 1 fi fi - ~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r "$appdir" :/apps/ + ~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r "$appdir" :/"$target" echo "start_app(\"/$appdir\")" ~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py popd