diff --git a/bin/templates/cordova/lib/build.js b/bin/templates/cordova/lib/build.js index 40c93355..a5f0a34f 100644 --- a/bin/templates/cordova/lib/build.js +++ b/bin/templates/cordova/lib/build.js @@ -130,7 +130,11 @@ function parseOpts (options, resolvedTarget, projectRoot) { ret.packageType = packageArgs.packageType; } } else { - ret.packageType = PackageType.APK; + if (ret.buildType === 'release') { + ret.packageType = PackageType.BUNDLE; + } else { + ret.packageType = PackageType.APK; + } } return ret;