mirror of
https://github.com/1technophile/OpenMQTTGateway.git
synced 2026-02-19 16:21:44 +01:00
[BUILD] Add gitpod to build the firmware (#1515)
Allow to build OMG from a web browser and download the binary
This commit is contained in:
2
.gitpod.yml
Normal file
2
.gitpod.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
tasks:
|
||||
- command: pip3 install -U platformio && platformio run -e esp32dev-ble
|
||||
@@ -69,6 +69,7 @@ module.exports = {
|
||||
'upload/web-install',
|
||||
'upload/binaries',
|
||||
'upload/builds',
|
||||
'upload/gitpod',
|
||||
'upload/portal',
|
||||
'upload/advanced-configuration',
|
||||
'upload/troubleshoot'
|
||||
|
||||
BIN
docs/img/OpenMQTTGateway-Build-gitpod-env.png
Normal file
BIN
docs/img/OpenMQTTGateway-Build-gitpod-env.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 90 KiB |
BIN
docs/img/OpenMQTTGateway-Build-gitpod.png
Normal file
BIN
docs/img/OpenMQTTGateway-Build-gitpod.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 93 KiB |
18
docs/upload/gitpod.md
Normal file
18
docs/upload/gitpod.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# (Option 4) Build from the web
|
||||
|
||||
To build OpenMQTTGateway from the web and download the binary, follow these steps:
|
||||
|
||||
1. Use Gitpod by clicking on the link below:
|
||||
[https://gitpod.io#https://github.com/1technophile/OpenMQTTGateway/tree/development](https://gitpod.io#https://github.com/1technophile/OpenMQTTGateway/tree/development)
|
||||
|
||||
2. This will generate a development environment in your browser and install [platformio](https://platformio.org/) as a build environment.
|
||||
|
||||
3. A first build for `esp32dev-ble` will be launched automatically. To modify the environment configuration, go to the environments.ini file in the root folder and launch the command like the one shown at the bottom of the image below:
|
||||
`platformio run -e <environment name>`
|
||||
|
||||

|
||||
|
||||
4. Wait for the server to build the binary. Once you see [SUCCESS], you can go to `.pio/build/<environment name>` and download `firmware.bin` by right-clicking on it and selecting "Download."
|
||||

|
||||
|
||||
5. Finally, follow [Option 2](binaries.md) to upload the binary.
|
||||
Reference in New Issue
Block a user