mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 22:28:12 +00:00
a633f46f4f
* Move the release build steps into separate shell scripts * Remove builds that we don't need any more * Latest builds of er9x and erSkyTx both support MULTI_TELEMETRY so separate OpenTX / erSkyTx builds are no longer needed * Radio can switch telemetry inversion on or off automatically so STM32 inv / noinv builds are no longer needed
28 lines
855 B
Bash
28 lines
855 B
Bash
#!/usr/bin/env bash
|
|
|
|
exitcode=0;
|
|
|
|
printf "\n\e[33;1mBuilding multi-orangerx-aetr-green-inv-v$MULTI_VERSION.bin\e[0m";
|
|
opt_enable $ALL_PROTOCOLS;
|
|
opt_disable ORANGE_TX_BLUE;
|
|
buildMulti;
|
|
exitcode=$((exitcode+$?));
|
|
mv build/Multiprotocol.ino.bin ./binaries/multi-orangerx-aetr-green-inv-v$MULTI_VERSION.bin;
|
|
|
|
printf "\n\e[33;1mBuilding multi-orangerx-aetr-blue-inv-v$MULTI_VERSION.bin\e[0m";
|
|
opt_enable ORANGE_TX_BLUE;
|
|
buildMulti;
|
|
exitcode=$((exitcode+$?));
|
|
mv build/Multiprotocol.ino.bin ./binaries/multi-orangerx-aetr-blue-inv-v$MULTI_VERSION.bin;
|
|
|
|
printf "\n\e[33;1mPackaging ancilliary files for v$MULTI_VERSION\e[0m\n";
|
|
cp Multiprotocol/Multi.txt ./binaries/Multi.txt;
|
|
mkdir -p SCRIPTS/TOOLS;
|
|
cp Lua_scripts/*.lua SCRIPTS/TOOLS/;
|
|
cp Lua_scripts/*.txt SCRIPTS/TOOLS/;
|
|
zip -q ./binaries/MultiLuaScripts.zip SCRIPTS/TOOLS/*;
|
|
|
|
printf "\n";
|
|
|
|
exit $exitcode;
|