You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
scripts/install.sh: add oneapp mode
This commit is contained in:
@@ -1,7 +1,28 @@
|
||||
pkill -f "python.*mpremote"
|
||||
|
||||
appname="$1"
|
||||
|
||||
pushd internal_filesystem/
|
||||
|
||||
if [ ! -z "$appname" ]; then
|
||||
echo "Installing one app: $appname"
|
||||
appdir="apps/com.example.$appname/"
|
||||
if [ ! -d "$appdir" ]; then
|
||||
echo "$appdir doesn't exist so taking the builtin/"
|
||||
appdir="builtin/apps/com.example.$appname/"
|
||||
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/
|
||||
echo "start_app(\"/$appdir\")"
|
||||
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py
|
||||
popd
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
~/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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user