forked from WebControlCNC/WebControl
-
Notifications
You must be signed in to change notification settings - Fork 3
/
buildLinux1.sh
57 lines (47 loc) · 1.86 KB
/
buildLinux1.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
#!/bin/bash
rm -rf build
mkdir build
rm -rf firmware
mkdir firmware
cd firmware
mkdir madgrizzle
mkdir maslowcnc
mkdir holey
cd ../build
madgrizzle_firmware_repo=https://github.com/madgrizzle/Firmware.git
madgrizzle_firmware_sha=bf4350ffd9bc154832505fc0125abd2c4c04dba7
git clone $madgrizzle_firmware_repo firmware/madgrizzle
cd firmware/madgrizzle
git checkout $madgrizzle_firmware_sha
pio run -e megaatmega2560
mv .pio/build/megaatmega2560/firmware.hex ~/WebControl/firmware/madgrizzle/madgrizzle-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex
cd ../..
maslowcnc_firmware_repo=https://github.com/MaslowCNC/Firmware.git
maslowcnc_firmware_sha=e1e0d020fff1f4f7c6b403a26a85a16546b7e15b
git clone $maslowcnc_firmware_repo firmware/maslowcnc
cd firmware/maslowcnc
git checkout $maslowcnc_firmware_sha
pio run -e megaatmega2560
mv .pio/build/megaatmega2560/firmware.hex ~/WebControl/firmware/maslowcnc/maslowcnc-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex
cd ../..
holey_firmware_repo=https://github.com/madgrizzle/Firmware.git
holey_firmware_sha=950fb23396171cbd456c2d4149455cc45f5e6bc3
git clone $holey_firmware_repo firmware/holey
cd firmware/holey
git checkout $holey_firmware_sha
pio run -e megaatmega2560
mv .pio/build/megaatmega2560/firmware.hex ~/WebControl/firmware/holey/holey-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex
cd ~/WebControl
rm -r dist
pyinstaller main-onedir.spec
cd dist/main
touch webcontrol-linux-singledirectory.tar.gz
tar -zcvf webcontrol-linux-singledirectory.tar.gz --exclude=webcontrol-linux-singledirectory.tar.gz .
mv webcontrol-linux-singledirectory.tar.gz ../../releases
cd ~/WebControl
rm -r dist
pyinstaller main.spec
cd dist
touch webcontrol-linux-singlefile.tar.gz
tar -zcvf webcontrol-linux-singlefile.tar.gz --exclude=webcontrol-linux-singlefile.tar.gz .
mv webcontrol-linux-singlefile.tar.gz ../releases