|
| 1 | +#!/bin/bash |
| 2 | +rm -rf build |
| 3 | +mkdir build |
| 4 | +rm -rf firmware |
| 5 | +mkdir firmware |
| 6 | +cd firmware |
| 7 | +mkdir madgrizzle |
| 8 | +mkdir maslowcnc |
| 9 | +mkdir holey |
| 10 | + |
| 11 | +cd ../build |
| 12 | +madgrizzle_firmware_repo=https://github.com/madgrizzle/Firmware.git |
| 13 | +madgrizzle_firmware_sha=bf4350ffd9bc154832505fc0125abd2c4c04dba7 |
| 14 | +git clone $madgrizzle_firmware_repo firmware/madgrizzle |
| 15 | +cd firmware/madgrizzle |
| 16 | +git checkout $madgrizzle_firmware_sha |
| 17 | +pio run -e megaatmega2560 |
| 18 | + |
| 19 | +mv .pio/build/megaatmega2560/firmware.hex ~/WebControl/firmware/madgrizzle/madgrizzle-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex |
| 20 | + |
| 21 | +cd ../.. |
| 22 | + |
| 23 | +maslowcnc_firmware_repo=https://github.com/MaslowCNC/Firmware.git |
| 24 | +maslowcnc_firmware_sha=e1e0d020fff1f4f7c6b403a26a85a16546b7e15b |
| 25 | +git clone $maslowcnc_firmware_repo firmware/maslowcnc |
| 26 | +cd firmware/maslowcnc |
| 27 | +git checkout $maslowcnc_firmware_sha |
| 28 | +pio run -e megaatmega2560 |
| 29 | +mv .pio/build/megaatmega2560/firmware.hex ~/WebControl/firmware/maslowcnc/maslowcnc-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex |
| 30 | + |
| 31 | +cd ../.. |
| 32 | + |
| 33 | +holey_firmware_repo=https://github.com/madgrizzle/Firmware.git |
| 34 | +holey_firmware_sha=950fb23396171cbd456c2d4149455cc45f5e6bc3 |
| 35 | +git clone $holey_firmware_repo firmware/holey |
| 36 | +cd firmware/holey |
| 37 | +git checkout $holey_firmware_sha |
| 38 | +pio run -e megaatmega2560 |
| 39 | +mv .pio/build/megaatmega2560/firmware.hex ~/WebControl/firmware/holey/holey-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex |
| 40 | + |
| 41 | + |
| 42 | +cd ~/WebControl |
| 43 | +rm -r dist |
| 44 | +pyinstaller main-onedir.spec |
| 45 | +cd dist/main |
| 46 | +touch webcontrol-linux-singledirectory.tar.gz |
| 47 | +tar -zcvf webcontrol-linux-singledirectory.tar.gz --exclude=webcontrol-linux-singledirectory.tar.gz . |
| 48 | +mv webcontrol-linux-singledirectory.tar.gz ../../releases |
| 49 | + |
| 50 | +cd ~/WebControl |
| 51 | +rm -r dist |
| 52 | +pyinstaller main.spec |
| 53 | +cd dist |
| 54 | +touch webcontrol-linux-singlefile.tar.gz |
| 55 | +tar -zcvf webcontrol-linux-singlefile.tar.gz --exclude=webcontrol-linux-singlefile.tar.gz . |
| 56 | +mv webcontrol-linux-singlefile.tar.gz ../releases |
| 57 | + |
0 commit comments