diff --git a/build-android/build.sh b/build-android/build.sh index 2db0110..7739754 100755 --- a/build-android/build.sh +++ b/build-android/build.sh @@ -31,7 +31,8 @@ if [ "${CLASSICAL}" == "1" ]; then popd mkdir -p /root/out/tools - cp bin/android_editor.apk /root/out/tools/ + # Note: this will fail if the apk is not signed. + cp bin/android_editor_builds/android_editor-release.apk /root/out/tools/ $SCONS platform=android arch=arm32 $OPTIONS target=template_debug $SCONS platform=android arch=arm32 $OPTIONS target=template_release @@ -47,6 +48,10 @@ if [ "${CLASSICAL}" == "1" ]; then pushd platform/android/java ./gradlew generateGodotTemplates + + # Push Godot Android library to MavenCentral + ./gradlew publishTemplateReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository + popd mkdir -p /root/out/templates diff --git a/build-release.sh b/build-release.sh index 4f400e0..70ea09d 100755 --- a/build-release.sh +++ b/build-release.sh @@ -318,7 +318,7 @@ if [ "${build_classical}" == "1" ]; then # Editor binname="${godot_basename}_android_editor.apk" - cp out/android/tools/android_editor.apk ${reldir}/${binname} + cp out/android/tools/android_editor-release.apk ${reldir}/${binname} # Templates cp out/android/templates/*.apk ${templatesdir}/ diff --git a/config.sh.in b/config.sh.in index 9fe9ccc..757395d 100644 --- a/config.sh.in +++ b/config.sh.in @@ -46,3 +46,25 @@ export APPLE_ID_PASSWORD="" export NUGET_SOURCE="nuget.org" # API key for publishing NuGet packages to nuget.org export NUGET_API_KEY="" + +# MavenCentral (sonatype) credentials +export OSSRH_GROUP_ID="" +export OSSRH_USERNAME="" +export OSSRH_PASSWORD="" +# Sonatype assigned ID used to upload the generated artifacts +export SONATYPE_STAGING_PROFILE_ID="" +# Used to sign the artifacts after they're built +# ID of the GPG key pair, the last eight characters of its fingerprint +export SIGNING_KEY_ID="" +# Passphrase of the key pair +export SIGNING_PASSWORD="" +# Base64 encoded private GPG key +export SIGNING_KEY="" + +# Android signing configs +# Path to the Android keystore file used to sign the release build +export GODOT_ANDROID_SIGN_KEYSTORE="" +# Key alias used for signing the release build +export GODOT_ANDROID_KEYSTORE_ALIAS="" +# Password for the key used for signing the release build +export GODOT_ANDROID_SIGN_PASSWORD=""