cordova build --debug 和 --release 之间的区别

Difference between cordova build --debug and --release

我阅读了 cordova CLI documentation 并在 Google 中进行了搜索,但信息非常稀少。

文档说:

--debug Perform a debug build. This typically translates to debug mode for the underlying platform being built.
--release Perform a release build. This typically translates to release mode for the underlying platform being built.

--debug--release 到底有什么区别?例如 Android?

的翻译方式有何不同

通过调试构建的 apk 将 chrome 可检查,而发行版则不会。 Google Play 需要发布版本。此外,使用 --release -- --packageType=bundle 标志,您可以为 Google Play 商店生成捆绑包(而不是 apk)。

此外,发布版本需要使用您的证书进行签名,而调试则不需要。