mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 09:32:29 +01:00
- Feature: [#11512] Coloured usernames by group on multiplayer servers. - Feature: [#21734] Park admittance price can now be set via text input. - Feature: [#21957] [Plugin] Expose whether the game is paused to the plugin API. - Improved: [#21728] “Fix all rides” cheat now also works if a mechanic is already fixing the ride. - Improved: [#21769] Expose “animation is backwards” wall property in Tile Inspector. - Improved: [#21855] Add a separator between “Load Game” and “Save Game”, to avoid accidental overwriting. - Change: [#21715] [Plugin] Remove access to the internal `owner` property. Note: `ownership` is still accessible. - Change: [#21855] Cheats menu dropdown no longer requires dragging. - Change: [#21866] Hide the FPS Counter when the top toolbar/widgets have been toggled off. - Change: [#21950] Construction and removal buttons can now be held down for repeated placement. - Fix: [#866] Boat Hire boats get stuck entering track (original bug). - Fix: [#10701] No reason specified when placing door over unsuitable track. - Fix: [#18723, #21870] Attempting to demolish a flat ride in pause mode allows you to place multiple copies. - Fix: [#19559] Custom rides with long descriptions extend into lower widgets. - Fix: [#21696] Fullscreen window option not correctly applied on macOS. - Fix: [#21749] Crash when loading park bigger than current limits. - Fix: [#21787] Map generator heightmap should respect increased height limits. - Fix: [#21829] When creating a new scenario, the default name contains formatting codes. - Fix: [#21937] Build errors with the ORIGINAL_RATINGS flag. - Fix: [objects#324] Cannot build Colosseum inside a turn or helix. - Fix: [objects#325] Sloped castle walls are vertically offset by one pixel (original bug).
73 lines
2.3 KiB
Bash
Executable File
73 lines
2.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
# This sets up more environment variables using the existing environment
|
|
# It should be dot sourced into your environment
|
|
if [[ "$GITHUB_ACTIONS" != "true" ]]; then
|
|
export OPENRCT2_BUILD_SERVER=$(hostname)
|
|
export OPENRCT2_VERSION=0.4.11
|
|
GITHUB_REF=$(git rev-parse --symbolic-full-name HEAD)
|
|
GITHUB_SHA=$(git rev-parse HEAD)
|
|
fi
|
|
|
|
echo -e "\033[0;36mSetting up environment for OpenRCT2...\033[0m"
|
|
|
|
# Get the build number (number of commits since last tag)
|
|
get_build_number()
|
|
{
|
|
local pattern='.+-([0-9]+)-.+'
|
|
[[ $OPENRCT2_DESCRIBE =~ $pattern ]]
|
|
echo "${BASH_REMATCH[1]}"
|
|
}
|
|
export OPENRCT2_BUILD=$(get_build_number)
|
|
|
|
# Get the name of the branch and decide whether we should push the build to openrct2.org
|
|
unset OPENRCT2_TAG
|
|
unset OPENRCT2_PUSH
|
|
if [[ $GITHUB_REF == refs/tags/* ]]; then
|
|
unset OPENRCT2_BRANCH
|
|
export OPENRCT2_TAG=true
|
|
export OPENRCT2_PUSH=true
|
|
else
|
|
export OPENRCT2_BRANCH=${GITHUB_REF#refs/heads/}
|
|
if [[ "$OPENRCT2_BRANCH" =~ ^(develop|push/) ]]; then
|
|
export OPENRCT2_PUSH=true
|
|
fi
|
|
fi
|
|
if [[ -z "$OPENRCT2_ORG_TOKEN" ]]; then
|
|
unset OPENRCT2_PUSH
|
|
fi
|
|
|
|
# Get the short SHA1
|
|
export OPENRCT2_SHA1=$GITHUB_SHA
|
|
export OPENRCT2_SHA1_SHORT=${OPENRCT2_SHA1::7}
|
|
unset OPENRCT2_VERSION_EXTRA
|
|
if [[ "$OPENRCT2_TAG" != "true" ]]; then
|
|
export OPENRCT2_VERSION_EXTRA=$OPENRCT2_BRANCH-$OPENRCT2_SHA1_SHORT
|
|
fi
|
|
|
|
# Add scripts directory to PATH
|
|
realpath() {
|
|
[[ $1 = /* ]] && echo "$1" || echo "$(pwd)/${1#./}"
|
|
}
|
|
scriptsdir="$(realpath "$(dirname "${BASH_SOURCE[0]}")")"
|
|
export PATH="$scriptsdir:$PATH"
|
|
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
|
|
|
|
# Output all the variables
|
|
if [[ "$1" != "-q" ]]; then
|
|
echo "----------------------------------------------"
|
|
echo "OPENRCT2_BUILD_SERVER: $OPENRCT2_BUILD_SERVER"
|
|
echo "OPENRCT2_TAG: $OPENRCT2_TAG"
|
|
echo "OPENRCT2_BRANCH: $OPENRCT2_BRANCH"
|
|
echo "OPENRCT2_VERSION: $OPENRCT2_VERSION"
|
|
echo "OPENRCT2_VERSION_EXTRA: $OPENRCT2_VERSION_EXTRA"
|
|
echo "OPENRCT2_BUILD: $OPENRCT2_BUILD"
|
|
echo "OPENRCT2_DESCRIBE: $OPENRCT2_DESCRIBE"
|
|
echo "OPENRCT2_PUSH: $OPENRCT2_PUSH"
|
|
echo "OPENRCT2_SHA1: $OPENRCT2_SHA1"
|
|
echo "OPENRCT2_SHA1_SHORT: $OPENRCT2_SHA1_SHORT"
|
|
echo "----------------------------------------------"
|
|
fi
|