forked from ArduPilot/mavesp8266
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmake_release.sh
47 lines (36 loc) · 1.63 KB
/
make_release.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
#!/bin/bash
# if you want to build and rename binaries that will go to files.rfdesign.com.au, and can be uploaded through the TXMOD webpage run this:
#edit these #defines in src/mavesp8266.h to match this .sh before running it. ( ie increment both if you increment either )
# #define MAVESP8266_VERSION_MAJOR 1
# #define MAVESP8266_VERSION_MINOR 3
# #define MAVESP8266_VERSION_BUILD 12
#------------------------------------------------------------------
# set us up for a 2MB build:
#cp platformio.ini.2m platformio.ini
# build firmare.bin binary:
#platformio run
# build spiffs.bin binary:
#platformio run -t buildfs
# copy the target binaries to a releasable name:
#VERSION=V1.35
#echo cp .pioenvs/esp12e/spiffs.bin RFDTxMod-$VERSION.2m.spiffs.bin
#cp .pioenvs/esp12e/spiffs.bin RFDTxMod-$VERSION.2m.spiffs.bin
#echo cp .pioenvs/esp12e/firmware.bin RFDTxMod-$VERSION.2m.bin
#cp .pioenvs/esp12e/firmware.bin RFDTxMod-$VERSION.2m.bin
#------------------------------------------------------------------
# set us up for a 4MB build:
cp platformio.ini.4m platformio.ini
# build firmare.bin binary:
platformio run
# build spiffs.bin binary:
platformio run -t buildfs
# copy the target binaries to a releasable name:
VERSION=V1.35
echo cp .pioenvs/esp12e/spiffs.bin RFDTxMod-$VERSION.4m.spiffs.bin
cp .pioenvs/esp12e/spiffs.bin RFDTxMod-$VERSION.4m.spiffs.bin
echo cp .pioenvs/esp12e/firmware.bin RFDTxMod-$VERSION.4m.bin
cp .pioenvs/esp12e/firmware.bin RFDTxMod-$VERSION.4m.bin
#------------------------------------------------------------------
echo ------------------------------------------------------------------
# show user:
ls -l RFDTx*.bin