最終更新:2018-04-22 (日) 01:26:20 (2195d)  

cordova build
Top / cordova build

Synopsis

    cordova build [PROD] [TARGET] [PLATS] [BUILDCONFIG] [-- POPTS]

      PROD:   --debug|--release
      TARGET: --device|--emulator
      PLATS:  PLATFORM [...]
      BUILDCONFIG: --buildConfig=CONFIGFILE
      POPTS:  platformopts

Shortcut for `cordova prepare` + `cordova compile` for
all/the specified platforms.

    --debug ............................ debug build
    --release .......................... release build

    --device ........................... Build it for a device
    --emulator ......................... Build it for an emulator

    --buildConfig....................... Use the specified build configuration
                                         instead of default build.json

    --browserify ....................... Compile plugin JS at build time using
                                         browserify instead of runtime.

To provide platform specific options, you must include them after `--`.

Example
    cordova build android windows --debug --device
    cordova build android --release --buildConfig=..\myBuildConfig.json
    cordova build android --release -- --keystore="..\android.keystore" --storePassword=android --alias=mykey

    $ cordova build                   # build all platforms that were added
    $ cordova build android           # build debug for only Android
    $ cordova build android --debug   # build debug for only Android
    $ cordova build android --release # build release for only Android

リリース

  • cordova build --release android