Skip to content

Commit

Permalink
Fix LUA script zipping (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
benlye authored Oct 30, 2023
1 parent cd721e3 commit 8d84386
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
1 change: 1 addition & 0 deletions buildroot/bin/buildFunctions
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ buildEachRFModule() {
buildReleaseFiles(){
if [[ "$BOARD" =~ ":avr:multixmega32d4" ]]; then
build_release_orx;
build_release_extras;
elif [[ "$BOARD" =~ ":avr:multiatmega328p:bootloader=none" ]]; then
build_release_avr_noboot;
elif [[ "$BOARD" =~ ":avr:multiatmega328p:bootloader=optiboot" ]]; then
Expand Down
15 changes: 15 additions & 0 deletions buildroot/bin/build_release_extras
Original file line number Diff line number Diff line change
@@ -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;
7 changes: 0 additions & 7 deletions buildroot/bin/build_release_orx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,4 @@ buildMulti;
exitcode=$((exitcode+$?));
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;

0 comments on commit 8d84386

Please sign in to comment.