Update for Godot 4.3 (#149)
`editor_settings.tres` is now split per minor version since 4.3. This also updates mono.Dockerfile to match the main Dockerfile.
This commit is contained in:
36
Dockerfile
36
Dockerfile
@@ -17,9 +17,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
osslsigncode \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ARG GODOT_VERSION="4.2.1"
|
||||
# When in doubt, see the downloads page: https://downloads.tuxfamily.org/godotengine/
|
||||
ARG GODOT_VERSION="4.3"
|
||||
|
||||
# Example values: stable, beta3, rc1, dev2, etc.
|
||||
# Also change the `SUBDIR` argument below when NOT using stable.
|
||||
ARG RELEASE_NAME="stable"
|
||||
|
||||
# This is only needed for non-stable builds (alpha, beta, RC)
|
||||
# e.g. SUBDIR "/beta3"
|
||||
# Use an empty string "" when the RELEASE_NAME is "stable".
|
||||
ARG SUBDIR=""
|
||||
|
||||
ARG GODOT_TEST_ARGS=""
|
||||
ARG GODOT_PLATFORM="linux.x86_64"
|
||||
|
||||
@@ -40,7 +49,7 @@ RUN /opt/butler/bin/butler -V
|
||||
|
||||
ENV PATH="/opt/butler/bin:${PATH}"
|
||||
|
||||
# Download and setup android-sdk
|
||||
# Download and set up Android SDK to export to Android.
|
||||
ENV ANDROID_HOME="/usr/lib/android-sdk"
|
||||
RUN wget https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip \
|
||||
&& unzip commandlinetools-linux-*_latest.zip -d cmdline-tools \
|
||||
@@ -52,19 +61,22 @@ ENV PATH="${ANDROID_HOME}/cmdline-tools/cmdline-tools/bin:${PATH}"
|
||||
RUN yes | sdkmanager --licenses \
|
||||
&& sdkmanager "platform-tools" "build-tools;33.0.2" "platforms;android-33" "cmdline-tools;latest" "cmake;3.22.1" "ndk;25.2.9519653"
|
||||
|
||||
# Adding android keystore and settings
|
||||
# Add Android keystore and settings.
|
||||
RUN keytool -keyalg RSA -genkeypair -alias androiddebugkey -keypass android -keystore debug.keystore -storepass android -dname "CN=Android Debug,O=Android,C=US" -validity 9999 \
|
||||
&& mv debug.keystore /root/debug.keystore
|
||||
|
||||
RUN godot -v -e --quit --headless ${GODOT_TEST_ARGS}
|
||||
RUN echo 'export/android/android_sdk_path = "/usr/lib/android-sdk"' >> ~/.config/godot/editor_settings-4.tres
|
||||
RUN echo 'export/android/debug_keystore = "/root/debug.keystore"' >> ~/.config/godot/editor_settings-4.tres
|
||||
RUN echo 'export/android/debug_keystore_user = "androiddebugkey"' >> ~/.config/godot/editor_settings-4.tres
|
||||
RUN echo 'export/android/debug_keystore_pass = "android"' >> ~/.config/godot/editor_settings-4.tres
|
||||
RUN echo 'export/android/force_system_user = false' >> ~/.config/godot/editor_settings-4.tres
|
||||
RUN echo 'export/android/timestamping_authority_url = ""' >> ~/.config/godot/editor_settings-4.tres
|
||||
RUN echo 'export/android/shutdown_adb_on_exit = true' >> ~/.config/godot/editor_settings-4.tres
|
||||
# Godot editor settings are stored per minor version since 4.3.
|
||||
# `${GODOT_VERSION:0:3}` transforms a string of the form `x.y.z` into `x.y`, even if it's already `x.y` (until Godot 4.9).
|
||||
RUN echo 'export/android/android_sdk_path = "/usr/lib/android-sdk"' >> ~/.config/godot/editor_settings-${GODOT_VERSION:0:3}.tres
|
||||
RUN echo 'export/android/debug_keystore = "/root/debug.keystore"' >> ~/.config/godot/editor_settings-${GODOT_VERSION:0:3}.tres
|
||||
RUN echo 'export/android/debug_keystore_user = "androiddebugkey"' >> ~/.config/godot/editor_settings-${GODOT_VERSION:0:3}.tres
|
||||
RUN echo 'export/android/debug_keystore_pass = "android"' >> ~/.config/godot/editor_settings-${GODOT_VERSION:0:3}.tres
|
||||
RUN echo 'export/android/force_system_user = false' >> ~/.config/godot/editor_settings-${GODOT_VERSION:0:3}.tres
|
||||
RUN echo 'export/android/timestamping_authority_url = ""' >> ~/.config/godot/editor_settings-${GODOT_VERSION:0:3}.tres
|
||||
RUN echo 'export/android/shutdown_adb_on_exit = true' >> ~/.config/godot/editor_settings-${GODOT_VERSION:0:3}.tres
|
||||
|
||||
# Download and set up rcedit to change Windows executable icons on export.
|
||||
RUN wget https://github.com/electron/rcedit/releases/download/v2.0.0/rcedit-x64.exe -O /opt/rcedit.exe
|
||||
RUN echo 'export/windows/rcedit = "/opt/rcedit.exe"' >> ~/.config/godot/editor_settings-4.tres
|
||||
RUN echo 'export/windows/wine = "/usr/bin/wine64-stable"' >> ~/.config/godot/editor_settings-4.tres
|
||||
RUN echo 'export/windows/rcedit = "/opt/rcedit.exe"' >> ~/.config/godot/editor_settings-${GODOT_VERSION:0:3}.tres
|
||||
RUN echo 'export/windows/wine = "/usr/bin/wine64-stable"' >> ~/.config/godot/editor_settings-${GODOT_VERSION:0:3}.tres
|
||||
|
||||
Reference in New Issue
Block a user