Skip to content

Commit

Permalink
fix Godot version check
Browse files Browse the repository at this point in the history
  • Loading branch information
ceceppa committed Oct 26, 2023
1 parent e14e778 commit 85ee351
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion init-and-run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,20 @@ GODOT_BIN=/usr/local/bin/godot

# Download Godot
GODOT_PARAMS=
is_version_4=$( [[ $version == 4* ]] && echo "true" || echo "false" )
is_version_4=$( [[ $GODOT_VERSION == 4* ]] && echo "true" || echo "false" )

if [[ $is_version_4 == "true" ]]; then
echo "Downloading Godot4"

wget https://github.com/godotengine/godot/releases/download/${GODOT_VERSION}-stable/Godot_v${GODOT_VERSION}-stable_linux.x86_64.zip

# Unzip it
unzip Godot_v${GODOT_VERSION}-stable_linux.x86_64.zip
mv Godot_v${GODOT_VERSION}-stable_linux.x86_64 $GODOT_BIN
GODOT_PARAMS="--headless"
else
echo "Downloading Godot3"

wget https://downloads.tuxfamily.org/godotengine/${GODOT_VERSION}/Godot_v${GODOT_VERSION}-stable_linux_headless.64.zip

# Unzip it
Expand Down

0 comments on commit 85ee351

Please sign in to comment.