Skip to content

Commit 46e1911

Browse files
authored
Merge pull request #541 from pfeerick/devcontainer
chore: add devcontainer / GitHub Codespaces support, developer documentation fixes
2 parents bddf481 + 1286ee4 commit 46e1911

4 files changed

Lines changed: 39 additions & 4 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM mcr.microsoft.com/devcontainers/base:ubuntu-22.04
2+
3+
# Install toolchain dependencies at image build time for faster container startup.
4+
RUN apt-get update \
5+
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
6+
bash \
7+
git \
8+
lua5.2 \
9+
make \
10+
zip \
11+
&& rm -rf /var/lib/apt/lists/*

.devcontainer/devcontainer.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "betaflight-tx-lua-scripts",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"customizations": {
7+
"vscode": {
8+
"settings": {
9+
"files.eol": "\n"
10+
}
11+
}
12+
}
13+
}

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ Please search for existing issues *before* creating new ones.
1010

1111
# Developers
1212

13-
Please refer to the development section in the [this folder](https://github.com/betaflight/betaflight/tree/master/docs/development).
13+
Please refer to the Betaflight development guidelines on the [betaflight.com development docs](https://www.betaflight.com/docs/development).

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![BF lua logo light mode](docs/assets/images/bf_lua_logo_light_mode.png#gh-light-mode-only)
22
![BF lua logo dark mode](docs/assets/images/bf_lua_logo_dark_mode.png#gh-dark-mode-only)
33

4-
[![Latest version](https://img.shields.io/github/v/release/betaflight/betaflight-tx-lua-scripts)](https://github.com/betaflight/betaflight-tx-lua-scripts/releases) [![Build](https://img.shields.io/github/actions/workflow/status/betaflight/betaflight-tx-lua-scripts/nightly.yml?branch=master)](https://github.com/betaflight/betaflight-tx-lua-scripts/actions/workflows/nightly.yml) [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
4+
[![Latest version](https://img.shields.io/github/v/release/betaflight/betaflight-tx-lua-scripts)](https://github.com/betaflight/betaflight-tx-lua-scripts/releases) [![Build](https://img.shields.io/github/actions/workflow/status/betaflight/betaflight-tx-lua-scripts/nightly.yml?branch=master)](https://github.com/betaflight/betaflight-tx-lua-scripts/actions/workflows/nightly.yml) [![Open in GitHub Codespaces](https://img.shields.io/badge/Codespaces-Open-181717?logo=github)](https://codespaces.new/betaflight/betaflight-tx-lua-scripts) [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
55

66
## Requirements
77

@@ -44,7 +44,7 @@ The "Betaflight setup" script lets you configure Betaflight through the MSP prot
4444

4545
#### Saving your changes
4646

47-
Any changes to parameters in the script will not take effect until a save is manually initiated. Change the parameters you want to change, open the function menu by long pressing [ENTER] and select "save page" to send the modified parameters back to the flight controller.
47+
Any changes to parameters in the script will not take effect until a save is manually initiated. Change the parameters you want to change, open the function menu by long pressing [ENTER] and select "save page" to send the modified parameters back to the flight controller.
4848

4949
#### Setting up VTX tables
5050

@@ -86,6 +86,17 @@ Be aware that these versions are intended for testing / feedback only, and may b
8686

8787
## Building from source
8888

89-
- Be sure to have `make` and `luac` in version 5.2 installed in the path
89+
### Using a Dev Container
90+
91+
- Open this repository in VS Code
92+
- Run `Dev Containers: Reopen in Container`
93+
- The same `.devcontainer` setup is used by GitHub Codespaces, thus you can also click the "Open in GitHub Codespaces" badge above
94+
- The container includes `make`, `lua`/`luac` 5.2, `zip`, `git`, and `bash`
95+
- Run `make` from the root folder
96+
97+
### Building locally
98+
99+
- Be sure to have `make` and Lua 5.2 (`luac`) installed in the path
100+
- For `make release`, you also need `git` and `zip` installed
90101
- Run `make` from the root folder
91102
- The installation files will be created in the `obj` folder. Copy the files to your transmitter as instructed in the '[Installing](#installing)' section as if you unzipped from a downloaded file.

0 commit comments

Comments
 (0)