mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-07-02 02:37:52 +00:00
Fix LUA script zipping (#898)
This commit is contained in:
parent
cd721e31d8
commit
8d84386c7a
@ -86,6 +86,7 @@ buildEachRFModule() {
|
|||||||
buildReleaseFiles(){
|
buildReleaseFiles(){
|
||||||
if [[ "$BOARD" =~ ":avr:multixmega32d4" ]]; then
|
if [[ "$BOARD" =~ ":avr:multixmega32d4" ]]; then
|
||||||
build_release_orx;
|
build_release_orx;
|
||||||
|
build_release_extras;
|
||||||
elif [[ "$BOARD" =~ ":avr:multiatmega328p:bootloader=none" ]]; then
|
elif [[ "$BOARD" =~ ":avr:multiatmega328p:bootloader=none" ]]; then
|
||||||
build_release_avr_noboot;
|
build_release_avr_noboot;
|
||||||
elif [[ "$BOARD" =~ ":avr:multiatmega328p:bootloader=optiboot" ]]; then
|
elif [[ "$BOARD" =~ ":avr:multiatmega328p:bootloader=optiboot" ]]; then
|
||||||
|
15
buildroot/bin/build_release_extras
Normal file
15
buildroot/bin/build_release_extras
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
source ./buildroot/bin/buildFunctions;
|
||||||
|
exitcode=0;
|
||||||
|
|
||||||
|
printf "\e[33;1mPackaging ancilliary files for v$MULTI_VERSION\e[0m\n";
|
||||||
|
cp Multiprotocol/Multi.txt ./binaries/Multi.txt;
|
||||||
|
|
||||||
|
mkdir -p SCRIPTS/TOOLS;
|
||||||
|
cp -r Lua_scripts/* SCRIPTS/TOOLS/;
|
||||||
|
find SCRIPTS/TOOLS -type f -name "*.md" -delete
|
||||||
|
|
||||||
|
zip -q -r ./binaries/MultiLuaScripts.zip SCRIPTS/TOOLS/*;
|
||||||
|
|
||||||
|
exit $exitcode;
|
@ -16,11 +16,4 @@ buildMulti;
|
|||||||
exitcode=$((exitcode+$?));
|
exitcode=$((exitcode+$?));
|
||||||
mv build/Multiprotocol.ino.bin ./binaries/mm-orangerx-aetr-blue-inv-v$MULTI_VERSION.bin;
|
mv build/Multiprotocol.ino.bin ./binaries/mm-orangerx-aetr-blue-inv-v$MULTI_VERSION.bin;
|
||||||
|
|
||||||
printf "\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/*;
|
|
||||||
|
|
||||||
exit $exitcode;
|
exit $exitcode;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user