forked from MarlinFirmware/Marlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Auto-build.sh
executable file
·63 lines (54 loc) · 1.8 KB
/
Auto-build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
# init
echo ".................................."
echo ".................................."
echo ".................................."
echo "...Building marlin for Ender 3...."
echo ".................................."
echo ".................................."
echo ".................................."
git checkout "Ender-3(2.0.x)"
git pull
platformio run -e LPC1769
echo "......................................"
echo "...build complete for ender 3-2.0.x..."
echo "......................................"
cp -f .pio/build/LPC1769/firmware.bin ~/Desktop/Ender3-2.0.x.bin
git checkout "Ender-3(Bugfix)"
git pull
platformio run -e LPC1769
echo "......................................"
echo "...build complete for ender 3-Bugfix.."
echo "......................................"
cp -f .pio/build/LPC1769/firmware.bin ~/Desktop/Ender3-Bugfix.bin
echo ""
echo ""
echo ""
echo ""
echo ""
echo ".................................."
echo ".................................."
echo ".................................."
echo "...Building marlin for Ender 5...."
echo ".................................."
echo ".................................."
echo ".................................."
git checkout "Ender-5(2.0.x)"
git pull
platformio run -e LPC1769
echo "......................................"
echo "...build complete for ender 5-2.0.x..."
echo "......................................"
cp -f .pio/build/LPC1769/firmware.bin ~/Desktop/Ender5-2.0.x.bin
git checkout "Ender-5(Bugfix)"
git pull
platformio run -e LPC1769
echo "......................................"
echo "...build complete for ender 3-Bugfix.."
echo "......................................"
cp -f .pio/build/LPC1769/firmware.bin ~/Desktop/Ender5-Bugfix.bin
echo firmware ready on desktop
function pause(){
read -p "$*"
}
pause 'Press [Enter] key to continue...'