diff --git a/README.md b/README.md index b8f6cf07..8300ce41 100644 --- a/README.md +++ b/README.md @@ -95,13 +95,14 @@ List of possible values of ``: #### 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`. -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 --osx64` * **Linux** use `yarn gulp --linux64` * **Windows** use `yarn gulp --win32` * **Android** use `yarn gulp --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 --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. diff --git a/gulpfile.js b/gulpfile.js index 5ec19904..d4825385 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -123,7 +123,7 @@ function getInputPlatforms() { const supportedPlatforms = ['linux64', 'linux32', 'armv7', 'osx64', 'win32', 'win64', 'android']; const platforms = []; const regEx = /--(\w+)/; - console.log(process.argv); + for (let i = 3; i < process.argv.length; i++) { const arg = process.argv[i].match(regEx)[1]; if (supportedPlatforms.indexOf(arg) > -1) {