Skip to content

Commit 25bc6e4

Browse files
install.sh: dont install all apps by default
1 parent c69efa4 commit 25bc6e4

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

scripts/install.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#!/bin/bash
2+
# Bash is used for pushd and popd
3+
14
mydir=$(readlink -f "$0")
25
mydir=$(dirname "$mydir")
36

@@ -73,7 +76,14 @@ $mpremote fs mkdir :/apps
7376
#$mpremote fs cp -r apps/com.micropythonos.musicplayer :/apps/
7477
#$mpremote fs cp -r apps/com.micropythonos.soundrecorder :/apps/
7578
#$mpremote fs cp -r apps/com.micropythonos.breakout :/apps/
76-
#exit 1
79+
80+
if [ ! -z "$appname" ]; then
81+
echo "Not resetting so the installed app can be used immediately."
82+
$mpremote reset
83+
fi
84+
85+
# Uncomment this line if you really want all apps the be installed:
86+
echo "Not installing all apps by default because it takes a long time, uses lots of storage and makes the boot slower..." ; popd ; exit 1
7787

7888
$mpremote fs cp -r apps/com.micropythonos.* :/apps/
7989
find apps/ -maxdepth 1 -type l | while read symlink; do
@@ -89,12 +99,3 @@ done
8999

90100
popd
91101

92-
# Install test infrastructure (for running ondevice tests)
93-
echo "Installing test infrastructure..."
94-
$mpremote fs mkdir :/tests
95-
$mpremote fs mkdir :/tests/screenshots
96-
97-
if [ ! -z "$appname" ]; then
98-
echo "Not resetting so the installed app can be used immediately."
99-
$mpremote reset
100-
fi

0 commit comments

Comments
 (0)