Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ jobs:
--latest=false \
--notes "**Development build, not a stable release.** Built automatically from the latest \`master\` commit ($GITHUB_SHA). It may contain unfinished or untested changes; for normal use, install the [latest release](https://github.com/$GITHUB_REPOSITORY/releases/latest).

The tools show version \`${GITHUB_SHA::7}\`. To install, extract the zip onto the SD card root."
The tools show version \`${GITHUB_SHA::7}\`. To install, extract \`expresslrs-lua-nightly.zip\` onto the SD card root. Older EdgeTX, OpenTX or low-RAM radios: use \`expresslrs-lua-legacy.zip\` instead."
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,20 @@ jobs:
if prev=$(git describe --tags --abbrev=0 --match 'v[0-9]*' "$GITHUB_REF_NAME^" 2>/dev/null); then
args+=(--notes-start-tag "$prev")
fi
notes=$(cat <<EOF
| Radio | Download |
|-------|----------|
| EdgeTX 2.12.1+ or 3.0+ | \`expresslrs-lua-$GITHUB_REF_NAME.zip\` |
| Older EdgeTX, OpenTX or low-RAM radios | \`expresslrs-lua-legacy.zip\` |

Extract the zip onto the SD card root. The new scripts require ExpressLRS 3.5.4+; use the legacy zip for older modules.
EOF
)
# --notes is placed before the generated notes.
gh release create "$GITHUB_REF_NAME" dist/*.zip \
--repo "$GITHUB_REPOSITORY" \
--title "$GITHUB_REF_NAME" \
--notes "$notes" \
--generate-notes \
--latest \
"${args[@]}"
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
SRC_DIR := src
DIST_DIR := dist
STAGE_DIR := $(DIST_DIR)/sdcard
LEGACY_STAGE_DIR := $(DIST_DIR)/legacy
LEGACY_ZIP_NAME := expresslrs-lua-legacy
# Shown in the tools: at most 8 characters fit the B&W EXIT labels.
VERSION ?= $(or $(shell git rev-parse HEAD 2>/dev/null | cut -c1-7),dev)
ZIP_NAME ?= expresslrs-lua-$(VERSION)
Expand Down Expand Up @@ -32,7 +34,7 @@ help:
@echo " format-check Check formatting without modifying files"
@echo " typecheck Run lua-language-server type checking"
@echo " check Run format-check and typecheck"
@echo " build Build an SD card zip with compiled bytecode (VERSION=, ZIP_NAME=)"
@echo " build Build the SD card zip with compiled bytecode (VERSION=, ZIP_NAME=) and the legacy zip"
@echo " sync Sync source files to EdgeTX simulator SD card"
@echo " push Install package to EdgeTX radio and eject"

Expand Down Expand Up @@ -76,6 +78,10 @@ build:
find $(STAGE_DIR) -name '*.lua' | while read -r f; do $(LUAC) -s -o "$${f}c" "$$f" || exit 1; done
cd $(STAGE_DIR) && zip -q -r ../$(ZIP_NAME).zip SCRIPTS WIDGETS
@echo "Built $(DIST_DIR)/$(ZIP_NAME).zip (version $(VERSION))"
mkdir -p $(LEGACY_STAGE_DIR)/SCRIPTS/TOOLS
cp legacy/elrs.lua $(LEGACY_STAGE_DIR)/SCRIPTS/TOOLS/
cd $(LEGACY_STAGE_DIR) && zip -q -r ../$(LEGACY_ZIP_NAME).zip SCRIPTS
@echo "Built $(DIST_DIR)/$(LEGACY_ZIP_NAME).zip"

sync:
edgetx-cli dev sync ../edgetx-sdcard
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ The bind phrase manager additionally requires **ExpressLRS 4.1+**

## Legacy Script

[`legacy/`](legacy/) holds `elrs.lua`, the original single-file configuration tool lua meant for radios that do not support the minimum versions listed in [Compatibility](#compatibility), or do not have enough RAM to run the new tool script.
[`legacy/`](legacy/) holds `elrs.lua`, the original single-file configuration tool lua meant for radios that do not support the minimum versions listed in [Compatibility](#compatibility), or do not have enough RAM to run the new tool script. Each [release](https://github.com/ExpressLRS/Lua/releases) includes it as `expresslrs-lua-legacy.zip`; extract it onto the SD card root.

## Development

Expand Down
Loading