Skip to content

eyeseet/cordova-plugin-signed-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIT license

cordova-plugin-signed-bundle

Signs and/or bundles your cordova project after android release builds.

Installation

From your command prompt/terminal go to your app's root folder and execute:

cordova plugin add cordova-plugin-signed-bundle

Usage

After configuration add --bundle and/or --sign to the build command to create signed bundles of your application.

cordova build android --release --bundle --sign

If the --sign option is added, you will be asked to enter the password for the keystore during build.

Configuration

In order to sign the app you need to specify the keystore-file and the alias to use for the signing process in the config.xml file. If you do not have these go to generate keystore alias first.

config.xml

Add the preferences signed_bundle_keystore_path (relative or absolute path) and signed_bundle_keystore_alias inside the <platform name="android"></platform> element in your config file.

For example:

<platform name="android">
    <preference name="signed_bundle_keystore_path" value="../android.keystore" />
    <preference name="signed_bundle_keystore_alias" value="nl.cnc.alias" />
</platform>

Generate keystore alias (windows)

If you do not have a keystore and/or alias move to the directory you wish to save the keystore. Execute the following command (replace <filename> and <app_alias> with own values):

keytool -genkey -v -keystore <filename>.keystore -alias <app_alias> -keyalg RSA -keysize 2048 -validity 10000

Now use the path of the keystore file and <app_alias> to configure the config.xml file.

Created by Content And Creations

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published