2025-04-22 13:34:38 +02:00
|
|
|
pkill -f "python.*mpremote"
|
|
|
|
|
|
2025-05-07 10:38:40 +02:00
|
|
|
appname="$1"
|
|
|
|
|
|
2025-05-07 10:40:07 +02:00
|
|
|
if [ -z "$appname" ]; then
|
|
|
|
|
echo "Usage: $0 [appname]"
|
|
|
|
|
echo "Example: $0"
|
|
|
|
|
echo "Example: $0 launcher"
|
|
|
|
|
echo "Example: $0 wificonf"
|
|
|
|
|
echo "Example: $0 appstore"
|
|
|
|
|
sleep 2
|
|
|
|
|
fi
|
|
|
|
|
|
2025-04-25 15:08:49 +02:00
|
|
|
pushd internal_filesystem/
|
|
|
|
|
|
2025-05-07 10:38:40 +02:00
|
|
|
if [ ! -z "$appname" ]; then
|
|
|
|
|
echo "Installing one app: $appname"
|
|
|
|
|
appdir="apps/com.example.$appname/"
|
2025-05-07 16:10:55 +02:00
|
|
|
target="apps/"
|
2025-05-07 10:38:40 +02:00
|
|
|
if [ ! -d "$appdir" ]; then
|
|
|
|
|
echo "$appdir doesn't exist so taking the builtin/"
|
|
|
|
|
appdir="builtin/apps/com.example.$appname/"
|
2025-05-07 16:10:55 +02:00
|
|
|
target="builtin/apps/"
|
2025-05-07 10:38:40 +02:00
|
|
|
if [ ! -d "$appdir" ]; then
|
|
|
|
|
echo "$appdir also doesn't exist, exiting..."
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
fi
|
2025-05-12 22:59:44 +02:00
|
|
|
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py mkdir "/apps"
|
2025-05-12 21:01:16 +02:00
|
|
|
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py mkdir "/builtin"
|
|
|
|
|
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py mkdir "/builtin/apps"
|
2025-05-07 16:10:55 +02:00
|
|
|
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r "$appdir" :/"$target"
|
2025-05-07 10:38:40 +02:00
|
|
|
echo "start_app(\"/$appdir\")"
|
|
|
|
|
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py
|
|
|
|
|
popd
|
|
|
|
|
exit
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
2025-04-21 11:37:30 +02:00
|
|
|
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp boot.py :/boot.py
|
|
|
|
|
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp main.py :/main.py
|
2025-05-06 15:56:40 +02:00
|
|
|
|
|
|
|
|
#~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp main.py :/system/button.py
|
2025-05-02 00:49:29 +02:00
|
|
|
#~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp autorun.py :/autorun.py
|
2025-05-07 10:24:33 +02:00
|
|
|
#~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r system :/
|
2025-04-22 11:54:36 +02:00
|
|
|
|
2025-04-22 11:33:12 +02:00
|
|
|
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r apps :/
|
2025-05-03 11:27:37 +02:00
|
|
|
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r builtin :/
|
2025-04-23 16:28:23 +02:00
|
|
|
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r lib :/
|
2025-04-23 14:50:02 +02:00
|
|
|
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r resources :/
|
2025-05-26 11:09:52 +02:00
|
|
|
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r data :/
|
2025-04-21 11:37:30 +02:00
|
|
|
|
2025-04-25 15:08:49 +02:00
|
|
|
popd
|
|
|
|
|
|
2025-04-21 11:37:30 +02:00
|
|
|
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py reset
|