diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03195b7..0ad5f72 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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." diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 19681a7..d45f71c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 </dev/null | cut -c1-7),dev) ZIP_NAME ?= expresslrs-lua-$(VERSION) @@ -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" @@ -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 diff --git a/README.md b/README.md index c9dbce8..54dd673 100644 --- a/README.md +++ b/README.md @@ -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