Upload files to "bin"
This commit is contained in:
11
bin/run-bl
11
bin/run-bl
@@ -15,7 +15,6 @@ fi
|
|||||||
# Required vars
|
# Required vars
|
||||||
[ -z "$BL_PORT" ] && echo "Missing BL_PORT" && exit 1
|
[ -z "$BL_PORT" ] && echo "Missing BL_PORT" && exit 1
|
||||||
[ -z "$BL_GAMEMODE" ] && echo "Missing BL_GAMEMODE" && exit 1
|
[ -z "$BL_GAMEMODE" ] && echo "Missing BL_GAMEMODE" && exit 1
|
||||||
[ -z "$BL_SERVER_NAME" ] && echo "Missing BL_SERVER_NAME" && exit 1
|
|
||||||
|
|
||||||
if [[ "$BL_DEDI_LAN" == "1" ]]; then
|
if [[ "$BL_DEDI_LAN" == "1" ]]; then
|
||||||
dedi="dedicatedLAN"
|
dedi="dedicatedLAN"
|
||||||
@@ -82,12 +81,18 @@ fi
|
|||||||
|
|
||||||
echo "Launching Blockland..."
|
echo "Launching Blockland..."
|
||||||
|
|
||||||
|
server_name_args=()
|
||||||
|
[ -n "$BL_SERVER_NAME" ] && server_name_args=(-serverName "$BL_SERVER_NAME")
|
||||||
|
|
||||||
|
max_players_args=()
|
||||||
|
[ -n "$BL_MAX_PLAYERS" ] && max_players_args=(-maxPlayers "$BL_MAX_PLAYERS")
|
||||||
|
|
||||||
exec xvfb-run -a wine "Blockland.exe" \
|
exec xvfb-run -a wine "Blockland.exe" \
|
||||||
ptlaaxobimwroe \
|
ptlaaxobimwroe \
|
||||||
-${dedi} \
|
-${dedi} \
|
||||||
-port "$BL_PORT" \
|
-port "$BL_PORT" \
|
||||||
-dtoken "$BL_DTOKEN" \
|
-dtoken "$BL_DTOKEN" \
|
||||||
-gamemode "$BL_GAMEMODE" \
|
-gamemode "$BL_GAMEMODE" \
|
||||||
-serverName "$BL_SERVER_NAME" \
|
"${server_name_args[@]}" \
|
||||||
-maxPlayers "$BL_MAX_PLAYERS" \
|
"${max_players_args[@]}" \
|
||||||
$BL_EXTRA_ARGS
|
$BL_EXTRA_ARGS
|
||||||
Reference in New Issue
Block a user