steam deploy
This commit is contained in:
1
build/steamos/.gitignore
vendored
Normal file
1
build/steamos/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
output/
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../assets
|
|
||||||
BIN
build/steamos/builder_linux/linux32/crashhandler.so
Normal file
BIN
build/steamos/builder_linux/linux32/crashhandler.so
Normal file
Binary file not shown.
BIN
build/steamos/builder_linux/linux32/libstdc++.so.6
Normal file
BIN
build/steamos/builder_linux/linux32/libstdc++.so.6
Normal file
Binary file not shown.
BIN
build/steamos/builder_linux/linux32/steamcmd
Normal file
BIN
build/steamos/builder_linux/linux32/steamcmd
Normal file
Binary file not shown.
BIN
build/steamos/builder_linux/linux32/steamerrorreporter
Normal file
BIN
build/steamos/builder_linux/linux32/steamerrorreporter
Normal file
Binary file not shown.
40
build/steamos/builder_linux/steamcmd.sh
Normal file
40
build/steamos/builder_linux/steamcmd.sh
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
STEAMROOT="$(cd "${0%/*}" && echo $PWD)"
|
||||||
|
STEAMEXE=`basename "$0" .sh`
|
||||||
|
|
||||||
|
UNAME=`uname`
|
||||||
|
if [ "$UNAME" == "Linux" ]; then
|
||||||
|
PLATFORM=linux32
|
||||||
|
export LD_LIBRARY_PATH="$STEAMROOT/$PLATFORM:$LD_LIBRARY_PATH"
|
||||||
|
else # if [ "$UNAME" == "Darwin" ]; then
|
||||||
|
PLATFORM=osx32
|
||||||
|
export DYLD_LIBRARY_PATH="$STEAMROOT/$PLATFORM:$DYLD_LIBRARY_PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
ulimit -n 2048
|
||||||
|
|
||||||
|
MAGIC_RESTART_EXITCODE=42
|
||||||
|
|
||||||
|
if [ "$DEBUGGER" == "gdb" ] || [ "$DEBUGGER" == "cgdb" ]; then
|
||||||
|
ARGSFILE=$(mktemp $USER.steam.gdb.XXXX)
|
||||||
|
|
||||||
|
# Set the LD_PRELOAD varname in the debugger, and unset the global version.
|
||||||
|
if [ "$LD_PRELOAD" ]; then
|
||||||
|
echo set env LD_PRELOAD=$LD_PRELOAD >> "$ARGSFILE"
|
||||||
|
echo show env LD_PRELOAD >> "$ARGSFILE"
|
||||||
|
unset LD_PRELOAD
|
||||||
|
fi
|
||||||
|
|
||||||
|
$DEBUGGER -x "$ARGSFILE" "$STEAMROOT/$PLATFORM/$STEAMEXE" "$@"
|
||||||
|
rm "$ARGSFILE"
|
||||||
|
else
|
||||||
|
$DEBUGGER "$STEAMROOT/$PLATFORM/$STEAMEXE" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
STATUS=$?
|
||||||
|
|
||||||
|
if [ $STATUS -eq $MAGIC_RESTART_EXITCODE ]; then
|
||||||
|
exec "$0" "$@"
|
||||||
|
fi
|
||||||
|
exit $STATUS
|
||||||
7
build/steamos/builder_osx/.gitignore
vendored
Normal file
7
build/steamos/builder_osx/.gitignore
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
Frameworks/
|
||||||
|
package/
|
||||||
|
public/
|
||||||
|
lib*.dylib
|
||||||
|
steamclient.dylib
|
||||||
|
steamconsole.dylib
|
||||||
|
update_hosts_cached.vdf
|
||||||
BIN
build/steamos/builder_osx/crashhandler.dylib
Executable file
BIN
build/steamos/builder_osx/crashhandler.dylib
Executable file
Binary file not shown.
BIN
build/steamos/builder_osx/steamcmd
Executable file
BIN
build/steamos/builder_osx/steamcmd
Executable file
Binary file not shown.
84
build/steamos/builder_osx/steamcmd.sh
Executable file
84
build/steamos/builder_osx/steamcmd.sh
Executable file
@@ -0,0 +1,84 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# verbose
|
||||||
|
#set -x
|
||||||
|
|
||||||
|
set -o pipefail
|
||||||
|
shopt -s failglob
|
||||||
|
set -u
|
||||||
|
|
||||||
|
log () {
|
||||||
|
echo "steamcmd.sh[$$]: $*" >&2 || :
|
||||||
|
}
|
||||||
|
# This version interprets backslash escapes like echo -e
|
||||||
|
log_e () {
|
||||||
|
echo -e "steamcmd.sh[$$]: $*" >&2 || :
|
||||||
|
}
|
||||||
|
|
||||||
|
STEAMROOT="$(cd "$(dirname "$0")" && echo $PWD)"
|
||||||
|
if [ -z "${STEAMROOT}" ]; then
|
||||||
|
log $"Couldn't find Steam root directory from "$0", aborting!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
STEAMCMD=`basename "$0" .sh`
|
||||||
|
|
||||||
|
UNAME=`uname`
|
||||||
|
if [ "$UNAME" == "Linux" ]; then
|
||||||
|
STEAMEXE="${STEAMROOT}/linux32/${STEAMCMD}"
|
||||||
|
PLATFORM="linux32"
|
||||||
|
export LD_LIBRARY_PATH="$STEAMROOT/$PLATFORM:${LD_LIBRARY_PATH-}"
|
||||||
|
else # if [ "$UNAME" == "Darwin" ]; then
|
||||||
|
STEAMEXE="${STEAMROOT}/${STEAMCMD}"
|
||||||
|
if [ ! -x ${STEAMEXE} ]; then
|
||||||
|
STEAMEXE="${STEAMROOT}/Steam.AppBundle/Steam/Contents/MacOS/${STEAMCMD}"
|
||||||
|
fi
|
||||||
|
export DYLD_LIBRARY_PATH="$STEAMROOT:${DYLD_LIBRARY_PATH-}"
|
||||||
|
export DYLD_FRAMEWORK_PATH="$STEAMROOT:${DYLD_FRAMEWORK_PATH-}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
ulimit -n 2048
|
||||||
|
|
||||||
|
MAGIC_RESTART_EXITCODE=42
|
||||||
|
|
||||||
|
: "${DEBUGGER=}"
|
||||||
|
if [ "$DEBUGGER" == "gdb" ] || [ "$DEBUGGER" == "cgdb" ]; then
|
||||||
|
ARGSFILE=$(mktemp $USER.steam.gdb.XXXX)
|
||||||
|
|
||||||
|
# Set the LD_PRELOAD varname in the debugger, and unset the global version.
|
||||||
|
: "${LD_PRELOAD=}"
|
||||||
|
if [ "$LD_PRELOAD" ]; then
|
||||||
|
echo set env LD_PRELOAD=$LD_PRELOAD >> "$ARGSFILE"
|
||||||
|
echo show env LD_PRELOAD >> "$ARGSFILE"
|
||||||
|
unset LD_PRELOAD
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Ditto with LD_LIBRARY_PATH, avoids this below:
|
||||||
|
# gdb: /home/plagman/src/valve/Steam/main/client/ubuntu12_32/steam-runtime/pinned_libs_64/libcurl.so.4: version `CURL_OPENSSL_4' not found (required by /usr/lib/libdebuginfod.so.1)
|
||||||
|
: "${LD_LIBRARY_PATH=}"
|
||||||
|
if [ "$LD_LIBRARY_PATH" ]; then
|
||||||
|
echo set env LD_LIBRARY_PATH=$LD_LIBRARY_PATH >> "$ARGSFILE"
|
||||||
|
echo show env LD_LIBRARY_PATH >> "$ARGSFILE"
|
||||||
|
unset LD_LIBRARY_PATH
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Enable index file caching for reasonable launch time under gdb
|
||||||
|
echo set index-cache enabled on >> "$ARGSFILE"
|
||||||
|
echo show index-cache stats >> "$ARGSFILE"
|
||||||
|
|
||||||
|
: "${DEBUGGER_ARGS=}"
|
||||||
|
log "gdb/cgdb launch with ARGSFILE: $ARGSFILE"
|
||||||
|
log $DEBUGGER -x "$ARGSFILE" $DEBUGGER_ARGS --args "$STEAMEXE" "$@"
|
||||||
|
|
||||||
|
$DEBUGGER -x "$ARGSFILE" $DEBUGGER_ARGS --args "$STEAMEXE" "$@"
|
||||||
|
rm "$ARGSFILE"
|
||||||
|
else
|
||||||
|
$DEBUGGER "$STEAMEXE" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
STATUS=$?
|
||||||
|
|
||||||
|
if [ $STATUS -eq $MAGIC_RESTART_EXITCODE ]; then
|
||||||
|
log "Restarting steamcmd by request..."
|
||||||
|
exec "$0" "$@"
|
||||||
|
fi
|
||||||
|
exit $STATUS
|
||||||
4
build/steamos/justfile
Normal file
4
build/steamos/justfile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
PWD:=""
|
||||||
|
|
||||||
|
build:
|
||||||
|
./builder_osx/steamcmd +login rustunit {{PWD}} +run_app_build ../scripts/hedz.vdf +quit
|
||||||
31
build/steamos/scripts/hedz.vdf
Normal file
31
build/steamos/scripts/hedz.vdf
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
"AppBuild"
|
||||||
|
{
|
||||||
|
"AppID" "1603000" // your AppID
|
||||||
|
"Desc" "This is a simple build script" // internal description for this build
|
||||||
|
"verbose" "1" // spew more build details in console
|
||||||
|
|
||||||
|
"SetLive" "alpha"
|
||||||
|
"ContentRoot" "..\content\" // root content folder, relative to location of this file
|
||||||
|
"BuildOutput" "..\output\" // build output folder for build logs and build cache files
|
||||||
|
|
||||||
|
"Depots"
|
||||||
|
{
|
||||||
|
"1603001" // your DepotID
|
||||||
|
{
|
||||||
|
"FileExclusion" "*/.DS_Store"
|
||||||
|
|
||||||
|
"FileMapping"
|
||||||
|
{
|
||||||
|
"LocalPath" "../../../assets/*" // all files from contentroot folder
|
||||||
|
"DepotPath" "./assets" // mapped into the root of the depot
|
||||||
|
"recursive" "1" // include all subfolders
|
||||||
|
}
|
||||||
|
|
||||||
|
"FileMapping"
|
||||||
|
{
|
||||||
|
"LocalPath" "hedz_reloaded" // all files from contentroot folder
|
||||||
|
"DepotPath" "." // mapped into the root of the depot
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user