3.2.0 • Published 23 days ago

@wavemaker/wm-cordova-cli v3.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
23 days ago

wm-cordova-cli

A command line untility to build mobile apps created using WaveMaker product.

The main goal of wm-cordova-cli is to simplify generation of APK or IPA for WaveMaker developers. wm-cordova-cli combines multiple cordova commands into a single command. First, one has to make sure all the required hardware and software are available and installed. Then execute the command with the appropriate values for arguments.

ANDROID build

Requirements

Command

wm-cordova build android <src_dir> <dest_dir> additional_arguments

                   Argument                   Description
src_dirDEFAULT: current working directory. Path to the cordova zip (or) path to the cordova project folder.
dest_dirOPTIONAL: Path to the directory where all build files are to be kept.
--cordovaVersionOPTIONAL: Cordova cli version to use
--cordovaAndroidVersionOPTIONAL: Version of cordova-ios to use
--aKeyStoreAbsolute path of the key store. If keystore is not given then android debug key is used.
--aStorePasswordPassword to key store
--aKeyAliasAlias name of the key
--aKeyPasswordKey Password
--packageTypeDEFAULT: apk'apk' or 'bundle' (for aab)
--buildTypeDEFAULT: developmentdevelopment or productionUse ‘production’ with keystore specified.
--allowHooksDEFAULT: true this flag can be used to turn on and off cordova hooks functionality.

Example 1

wm-cordova build android "/path/to/src"

Example 2

wm-cordova build android "/path/to/src" \
--aKeyStore="/path/to/file.keystore" \
--aStorePassword="store_password" \
--aKeyAlias="key_alias_name" \
--aKeyPassword="key" \
--buildType="production"

IOS build

Requirements

NOTE: Before building an app, please make sure that neither iPhone nor iPad is not connected to Mac. This is open issue on cordova-ios.

Command

wm-cordova build ios <src_dir> <dest_dir> additional_arguments

                   Argument                     Description
src_dirDEFAULT: current working directory. Path to the cordova zip (or) path to the cordova project folder.
dest_dirOPTIONAL: Path to the directory where all build files are to be kept.
--cordovaVersionOPTIONAL: Cordova cli version to use
--cordovaIosVersionOPTIONAL: Version of cordova-ios to use
--iCertificateAbsolute path of P12 certificate location
--iCertificatePasswordPassword to unlock the certificate.
--iProvisioningFileAbsolute path of provisioning file
--buildTypeDEFAULT: developmentdevelopment or production Use ‘production’ with an AppStore distribution certificate.
--allowHooksDEFAULT: true this flag can be used to turn on and off cordova hooks functionality.

Example

wm-cordova build ios "/path/to/src" \
--iCertificate="/path/to/distribution.p12" \
--iCertificatePassword="unlock_password" \
--iProvisioningFile="/path/to/profile.mobileprovision" \
--buildType="production"

Cordova versions used for a build

  1. Based upon the value of 'phonegap-cli' preference value, versions mentioned in the below table are used by default.
PHONEGAP-CLICORDOVACORDOVA-ANDROIDCORDOVA-IOS
cli-9.0.09.0.08.0.05.1.1
cli-8.1.18.1.17.1.24.5.5
cli-8.0.08.0.07.0.04.5.4
  1. In config.xml, the above cordova values can be overridden by setting preferences with the below mentioned names.

    wm-cordova wm-cordova-android wm-cordova-ios

  2. Cordova versions can also be mentioned as command line arguments.

Additional Information

  1. Destination folder path is logged at the start of the build.
  2. Build log files are present at <destination_folder>/output/logs
  3. The artifact built is available at <destination_folder>/output/<platform_type>/. The complete path is printed in log also.

License

MIT License Copyright (c) 2020 WaveMaker

3.2.0

23 days ago

3.1.0

3 months ago

3.0.3

4 months ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.0

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.0.2

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago