Skip to content

Commit e6d8f7e

Browse files
committed
Updating scratch to 3.x
1 parent 0395cbc commit e6d8f7e

1 file changed

Lines changed: 19 additions & 10 deletions

File tree

setupPackages.sh

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ else
1818
echo "$GITHUBDESKTOP installed "
1919
fi
2020

21-
sudo apt install -y git libncurses5 libpython2.7 mesa-utils openshot-qt python3-openshot ssh net-tools build-essential curl wget inkscape scratch docker.io libfuse2 nodejs npm sssd-ad sssd-tools realmd adcli krita obs-studio godot3 google-chrome-stable
22-
sudo apt purge -y brltty
23-
sudo apt purge -y modemmanager
21+
sudo apt install -y git libncurses5 libpython2.7 mesa-utils openshot-qt python3-openshot ssh net-tools build-essential curl wget inkscape docker.io libfuse2 nodejs npm sssd-ad sssd-tools realmd adcli krita obs-studio godot3 google-chrome-stable
22+
sudo apt purge -y modemmanager scratch brltty
2423

2524
SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
2625

@@ -127,15 +126,23 @@ if (! test -e $DESKTOP_FILE) then
127126
sudo desktop-file-install $DESKTOP_FILE
128127
fi
129128

129+
SCRATCH3=scratch-desktop_3.3.0_amd64.deb
130+
if (! test -e $SCRATCH3) then
131+
wget https://github.com/redshaderobotics/scratch3.0-linux/releases/download/3.3.0/scratch-desktop_3.3.0_amd64.deb -O $SCRIPT/$SCRATCH3
132+
sudo dpkg -i $SCRATCH3
133+
fi
130134

131135

132136
## old cleanup section
133-
EXCEPTION_ZIP=EspExceptionDecoder-2.0.3.zip
137+
EXCEPTION_ZIP=esp-exception-decoder-1.0.2.vsix
138+
# https://github.com/dankeboy36/esp-exception-decoder
139+
134140
sudo mkdir -p /etc/skel/Arduino/tools/
135141
if (! test -e $EXCEPTION_ZIP) then
136142

137-
wget https://github.com/me-no-dev/EspExceptionDecoder/releases/download/2.0.3/$EXCEPTION_ZIP -O $EXCEPTION_ZIP
138-
sudo unzip $EXCEPTION_ZIP -d /etc/skel/Arduino/tools/
143+
wget https://github.com/dankeboy36/esp-exception-decoder/releases/download/1.0.2/$EXCEPTION_ZIP -O $SCRIPT/$EXCEPTION_ZIP
144+
sudo mkdir -p /etc/skel/.arduinoIDE/plugins/
145+
sudo cp $SCRIPT/$EXCEPTION_ZIP /etc/skel/.arduinoIDE/plugins/
139146
fi
140147

141148
sudo mkdir -p /etc/skel/.config
@@ -145,14 +152,16 @@ cd /home/
145152
for d in */ ; do
146153
TRIMMED=$(basename $d);
147154
echo "Checking $TRIMMED"
148-
sudo mkdir -p /home/$TRIMMED/Arduino/tools/EspExceptionDecoder/tool/
149-
sudo cp /etc/skel/Arduino/tools/EspExceptionDecoder/tool/EspExceptionDecoder.jar /home/$TRIMMED/Arduino/tools/EspExceptionDecoder/tool/
150-
sudo chown -R $TRIMMED:$TRIMMED /home/$TRIMMED/Arduino/
151-
if (! test -d $SCRIPT/.config/cura/) then
155+
sudo mkdir -p /home/$TRIMMED/.arduinoIDE/plugins/
156+
sudo cp $SCRIPT/$EXCEPTION_ZIP /home/$TRIMMED/.arduinoIDE/plugins/
157+
sudo chown -R $TRIMMED:$TRIMMED /home/$TRIMMED/.arduinoIDE/plugins/
158+
echo "sudo chown -R $TRIMMED:$TRIMMED /home/$TRIMMED/Arduino/"
159+
if (! test -d /home/$TRIMMED/.config/cura/) then
152160
echo "Updating cura config for $TRIMMED"
153161
sudo cp -r $SCRIPT/.config/cura/ /home/$TRIMMED/.config/
154162
fi
155163
sudo chown -R $TRIMMED:$TRIMMED /home/$TRIMMED/.config/
164+
echo "sudo chown -R $TRIMMED:$TRIMMED /home/$TRIMMED/.config/"
156165
done
157166

158167

0 commit comments

Comments
 (0)