Next we need to create a build.json file. This file will include the operating system specific settings that the BuildBots will use to produce your app.
Create build.json File
To create this file, navigate to your project root folder - this is the folder that contains the config.xml file and the rest of your Cordova folders that you generated on the last step.
This file only needs some basic information:
Code Block | ||||
---|---|---|---|---|
| ||||
{
"android": {
"release": {
"keystore": "myCordovaApp.jks",
"storePassword": "",
"alias": "myCordovaAppName",
"password" : "",
"keystoreType": ""
}
}
} |
Or alternatively, you can download an example build.json file here:
Download Android Example build.json
You can leave your passwords blank (for extra security, you'll be prompted for these when running the build request), and the only fields you'll need to enter are:
keystore:
This is the path to the signing certificate file you generated in the previous step. In this example we've placed the certificate in the project root (at the same level as your config.xml file), therefore just the name of the file is enough.
alias:
This should be the same alias you set when generating your signing certificate (this would most commonly be the name of your app).
Info |
---|
Note: For developers used to building Cordova apps, you'll notice we haven't included section for "debug" details in the build.json. These are generated automatically for you by the BuildBots, so there is no need to include them here. |