1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-20 23:05:15 +03:00

Added note discouraging the use of cross-platform builds.

This commit is contained in:
Michael Keller 2020-11-22 20:00:41 +01:00
parent ab60d5ffe0
commit e71affcd65
2 changed files with 3 additions and 2 deletions

View file

@ -95,13 +95,14 @@ List of possible values of `<task-name>`:
#### Build or release app for one specific platform #### Build or release app for one specific platform
To build or release only for one specific platform you can append the plaform after the `task-name`. To build or release only for one specific platform you can append the plaform after the `task-name`.
If no platform is provided, all the platforms will be done in sequence. If no platform is provided, the build for the host platform is run.
* **MacOS X** use `yarn gulp <task-name> --osx64` * **MacOS X** use `yarn gulp <task-name> --osx64`
* **Linux** use `yarn gulp <task-name> --linux64` * **Linux** use `yarn gulp <task-name> --linux64`
* **Windows** use `yarn gulp <task-name> --win32` * **Windows** use `yarn gulp <task-name> --win32`
* **Android** use `yarn gulp <task-name> --android` * **Android** use `yarn gulp <task-name> --android`
**Note:** Support for cross-platform building is very limited due to the requirement for platform specific build tools. If in doubt, build on the target platform.
You can also use multiple platforms e.g. `yarn gulp <taskname> --osx64 --linux64`. Other platforms like `--win64`, `--linux32` and `--armv7` can be used too, but they are not officially supported, so use them at your own risk. You can also use multiple platforms e.g. `yarn gulp <taskname> --osx64 --linux64`. Other platforms like `--win64`, `--linux32` and `--armv7` can be used too, but they are not officially supported, so use them at your own risk.

View file

@ -123,7 +123,7 @@ function getInputPlatforms() {
const supportedPlatforms = ['linux64', 'linux32', 'armv7', 'osx64', 'win32', 'win64', 'android']; const supportedPlatforms = ['linux64', 'linux32', 'armv7', 'osx64', 'win32', 'win64', 'android'];
const platforms = []; const platforms = [];
const regEx = /--(\w+)/; const regEx = /--(\w+)/;
console.log(process.argv);
for (let i = 3; i < process.argv.length; i++) { for (let i = 3; i < process.argv.length; i++) {
const arg = process.argv[i].match(regEx)[1]; const arg = process.argv[i].match(regEx)[1];
if (supportedPlatforms.indexOf(arg) > -1) { if (supportedPlatforms.indexOf(arg) > -1) {