Fredia Huya-Kouadio 0780ea4a4f Add logic to upload the Godot Android library to MavenCentral
Add environment variables to sign the release build for the Godot
Android editor and to publish the library to MavenCentral.
If the environment vars are not defined, we do a simple unsigned
`release_debug` build for the Android editor.

Change `config.sh.in` template to use single quotes by default, to
prevent expanding special characters in environment variables.

To publish to MavenCentral, a new `build-android/upload-mavencentral.sh`
script is added. It needs to run after the build using gradle, but we
still want it to be optional and used only when making an official
release, so we copy the compiled sources in the first step.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2023-05-25 09:28:43 +02:00
2020-02-26 11:24:01 +01:00

Godot in-container build scripts

Build scripts used for official Godot Engine releases using containers built from https://github.com/godotengine/build-containers

Disclaimer

This repository is not intended for end users, and thus not supported. It's only public as a way to document our build workflow, and for anyone to use as reference for their own buildsystems.

We will eventually release a public build script that integrates all this in a simple and user-friendly interface.

Usage

  • Build containers using https://github.com/godotengine/build-containers
  • Copy config.sh.in as config.sh and configure it as you want.
  • Edit build.sh to properly reference those containers if local, or use config.sh to point to your own registry if you uploaded containers.
  • Build with build.sh (check --help for usage).
  • Package binaries with build-release.sh (check --help for usage).

Example that builds Godot 3.2-stable Classical (not Mono):

./build.sh -v 3.2-stable -g 3.2-stable -b classical
./build-release.sh -v 3.2-stable -t 3.2.stable -b classical

Again, this is intended for release managers and usability is not the main focus. Tweak the build scripts to match your own requirements if you want to use this until we provide a better, user-friendly interface.

Description
Build scripts used for official Godot Engine builds with https://github.com/godotengine/build-containers
Readme 1.9 MiB
Languages
Shell 95.8%
Python 4.2%