25 lines
1.0 KiB
Fish
Executable File
25 lines
1.0 KiB
Fish
Executable File
#!/usr/bin/fish
|
|
|
|
echo "=== MicroPython Deployment Script ==="
|
|
|
|
echo "1. Create pico-client directories on device..."
|
|
mpremote connect port:rfc2217://localhost:4000 mkdir restapi
|
|
mpremote connect port:rfc2217://localhost:4000 mkdir classes
|
|
mpremote connect port:rfc2217://localhost:4000 mkdir display
|
|
mpremote connect port:rfc2217://localhost:4000 mkdir tryout
|
|
mpremote connect port:rfc2217://localhost:4000 mkdir utils
|
|
mpremote connect port:rfc2217://localhost:4000 mkdir web
|
|
|
|
|
|
echo "1. Copying pico-client directories to device..."
|
|
mpremote connect port:rfc2217://localhost:4000 cp -r restapi/mock :restapi
|
|
mpremote connect port:rfc2217://localhost:4000 cp -r classes :
|
|
mpremote connect port:rfc2217://localhost:4000 cp -r display :
|
|
mpremote connect port:rfc2217://localhost:4000 cp -r tryout :
|
|
mpremote connect port:rfc2217://localhost:4000 cp -r utils :
|
|
mpremote connect port:rfc2217://localhost:4000 cp -r web :
|
|
|
|
echo "2. Starting main.py..."
|
|
mpremote connect port:rfc2217://localhost:4000 run main.py
|
|
|
|
echo "=== Deployment Complete ===" |