BuildStendhalForAndroid: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
Ant: update instructions
imported>AntumDeluge
Add instructions to specify a signing keystore
Line 74: Line 74:


If <span style="color:darkgreen;">build</span> is used as the argument (<code>gradlew build</code>), it will execute all build types.
If <span style="color:darkgreen;">build</span> is used as the argument (<code>gradlew build</code>), it will execute all build types.

'''''NOTE:''' For <span style="color:darkgreen;">assemblePrerelease</span> & <span style="color:darkgreen;">assembleDebug</span> to succeed, you must have the Android debugging keystore installed in your home directory. <span style="color:darkgreen;">assembleRelease</span> does not sign the .apk package. It will [https://developer.android.com/studio/publish/app-signing need to be signed] to work on most Android systems.''


After build completes, the resulting .apk packages will be located in <span style="color:green;"><source root>/build/build_android_client/outputs/apk</span>.
After build completes, the resulting .apk packages will be located in <span style="color:green;"><source root>/build/build_android_client/outputs/apk</span>.

==== Signing Packages ====

On most Android systems packages will [https://developer.android.com/studio/publish/app-signing need to be signed] in order to work. By default Gradle will sign packages using a debugging keystore which must by installed in your home directory. You can specify a different keystore by creating a file <span style="color:darkblue;">android/keystore.properties</span> with contents as follows:

<pre>
storeFile=<path-to-keystore-file>
storePassword=<store-password>
keyPassword=<key-password>
keyAlias=<key-alias>
</pre>


=== Ant ===
=== Ant ===