In order to create production builds for LunaSea, you must first create and sign the release using the Android Keystore System.
Open a terminal window and run the following command to generate a new Android keystore:
You can optionally change the following:
-keystore ~/key.jks
: By default this will create the new keystore in the home directory of the running user as the file key.jks
but this can be changed to any location you like
-alias lunasea
: By default the keystore internal alias is set to lunasea
but you can use any alias you like
The generation will ask you for some basic information including a password. Please ensure you do not forget this password because you will need it in the next step.
In the root of the project, enter the android
folder and copy your previously generated *.jks
keystone into this folder, and name it key.jks
.
In the same folder, open key.properties.sample
. Fill in all of the fields with the following information:
storePassword
: Password from step 1
keyPassword
: Same password from step 1
keyAlias
: The chosen alias from step 1
storeFile
: Keep it as ../key.jks
Save the file as key.properties
inside of <project root>/android
.
And that's it! You are ready to create production releases of LunaSea using your own signing keystore.