Skip to content

Add support for a preset godot directory #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions build-android/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ export OPTIONS="production=yes"
export OPTIONS_MONO="module_mono_enabled=yes mono_static=no"
export TERM=xterm

rm -rf godot
mkdir godot
cd godot
tar xf /root/godot.tar.gz --strip-components=1
if [ ! -z "${PRESET_GODOT_DIR}" ]; then
cd $PRESET_GODOT_DIR
rm -rf bin
else
rm -rf godot
mkdir godot
cd godot
tar xf /root/godot.tar.gz --strip-components=1
fi

dnf install -y java-11-openjdk-devel
java --version
Expand Down
13 changes: 9 additions & 4 deletions build-ios/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ export TERM=xterm
export IOS_SDK="14.4"
export IOS_LIPO="/root/ioscross/arm64/bin/arm-apple-darwin11-lipo"

rm -rf godot
mkdir godot
cd godot
tar xf /root/godot.tar.gz --strip-components=1
if [ ! -z "${PRESET_GODOT_DIR}" ]; then
cd $PRESET_GODOT_DIR
rm -rf bin
else
rm -rf godot
mkdir godot
cd godot
tar xf /root/godot.tar.gz --strip-components=1
fi

# Classical

Expand Down
13 changes: 9 additions & 4 deletions build-javascript/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ export OPTIONS="production=yes"
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes mono_prefix=/root/mono-installs/wasm-runtime-release use_lto=no"
export TERM=xterm

rm -rf godot
mkdir godot
cd godot
tar xf /root/godot.tar.gz --strip-components=1
if [ ! -z "${PRESET_GODOT_DIR}" ]; then
cd $PRESET_GODOT_DIR
rm -rf bin
else
rm -rf godot
mkdir godot
cd godot
tar xf /root/godot.tar.gz --strip-components=1
fi

# Classical

Expand Down
13 changes: 9 additions & 4 deletions build-linux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ export MONO_PREFIX_X86_64="/root/mono-installs/desktop-linux-x86_64-release"
export MONO_PREFIX_X86="/root/mono-installs/desktop-linux-x86-release"
export TERM=xterm

rm -rf godot
mkdir godot
cd godot
tar xf /root/godot.tar.gz --strip-components=1
if [ ! -z "${PRESET_GODOT_DIR}" ]; then
cd $PRESET_GODOT_DIR
rm -rf bin
else
rm -rf godot
mkdir godot
cd godot
tar xf /root/godot.tar.gz --strip-components=1
fi

# Classical

Expand Down
13 changes: 9 additions & 4 deletions build-macosx/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@ export MONO_PREFIX_ARM64="/root/mono-installs/desktop-osx-arm64-release"
export STRIP="x86_64-apple-darwin20.2-strip -u -r"
export TERM=xterm

rm -rf godot
mkdir godot
cd godot
tar xf /root/godot.tar.gz --strip-components=1
if [ ! -z "${PRESET_GODOT_DIR}" ]; then
cd $PRESET_GODOT_DIR
rm -rf bin
else
rm -rf godot
mkdir godot
cd godot
tar xf /root/godot.tar.gz --strip-components=1
fi

# Classical

Expand Down
13 changes: 9 additions & 4 deletions build-mono-glue/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ export OPTIONS="debug_symbols=no use_static_cpp=no"
export TERM=xterm
export DISPLAY=:0

rm -rf godot
mkdir godot
cd godot
tar xf ../godot.tar.gz --strip-components=1
if [ ! -z "${PRESET_GODOT_DIR}" ]; then
cd $PRESET_GODOT_DIR
rm -rf bin
else
rm -rf godot
mkdir godot
cd godot
tar xf /root/godot.tar.gz --strip-components=1
fi

# Mono

Expand Down
13 changes: 9 additions & 4 deletions build-server/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes mono_prefix=/root/m
export TERM=xterm
export PATH="${GODOT_SDK_LINUX_X86_64}/bin:${BASE_PATH}"

rm -rf godot
mkdir godot
cd godot
tar xf /root/godot.tar.gz --strip-components=1
if [ ! -z "${PRESET_GODOT_DIR}" ]; then
cd $PRESET_GODOT_DIR
rm -rf bin
else
rm -rf godot
mkdir godot
cd godot
tar xf /root/godot.tar.gz --strip-components=1
fi

# Classical

Expand Down
13 changes: 9 additions & 4 deletions build-uwp/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ export OPTIONS="production=yes"
export BUILD_ARCHES="x86 x64 arm"
export ANGLE_SRC_PATH='c:\angle'

rm -rf godot
mkdir godot
cd godot
tar xf /root/godot.tar.gz --strip-components=1
if [ ! -z "${PRESET_GODOT_DIR}" ]; then
cd $PRESET_GODOT_DIR
rm -rf bin
else
rm -rf godot
mkdir godot
cd godot
tar xf /root/godot.tar.gz --strip-components=1
fi

# Classical

Expand Down
13 changes: 9 additions & 4 deletions build-windows/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ export MONO_PREFIX_X86_64="/root/mono-installs/desktop-windows-x86_64-release"
export MONO_PREFIX_X86="/root/mono-installs/desktop-windows-x86-release"
export TERM=xterm

rm -rf godot
mkdir godot
cd godot
tar xf /root/godot.tar.gz --strip-components=1
if [ ! -z "${PRESET_GODOT_DIR}" ]; then
cd $PRESET_GODOT_DIR
rm -rf bin
else
rm -rf godot
mkdir godot
cd godot
tar xf /root/godot.tar.gz --strip-components=1
fi

# Classical

Expand Down