Skip to content

Commit 992bae9

Browse files
authored
Updates to steam release script (#107)
1 parent 4b8861d commit 992bae9

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

scripts/build_steam_release.sh

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,29 @@ if [ ! -d lib/steamworks_c_wrapper/sdk ]; then
77
echo "Steam SDK not present"
88
fi
99

10-
if [ -z $STEAM_USR ]; then
10+
if [ -z "$STEAM_USR" ]; then
1111
echo "error: \$STEAM_USR not set"
1212
exit 1
1313
fi
1414

15-
if [ -z $STEAM_PWD ]; then
15+
if [ -z "$STEAM_PWD" ]; then
1616
echo "error: \$STEAM_PWD not set"
1717
exit 1
1818
fi
1919

20-
if ! command -v steamcmd 2>&1 > /dev/null; then
20+
if ! command -v steamcmd > /dev/null 2>&1; then
2121
echo "error: steamcmd is not installed"
2222
exit 1
2323
fi
24-
if ! command -v unzip 2>&1 > /dev/null; then
24+
if ! command -v unzip > /dev/null 2>&1; then
2525
echo "error: unzip is not installed"
2626
exit 1
2727
fi
28-
if ! command -v cmake 2>&1 > /dev/null; then
28+
if ! command -v cmake > /dev/null 2>&1; then
2929
echo "error: cmake is not installed"
3030
exit 1
3131
fi
32-
if ! command -v cpack 2>&1 > /dev/null; then
32+
if ! command -v cpack > /dev/null 2>&1; then
3333
echo "error: cpack is not installed"
3434
exit 1
3535
fi
@@ -78,11 +78,17 @@ rm -rf ${STEAM_CONTENT_DIR_WINDOWS:?}/*
7878
unzip $BUILD_DIR_WINDOWS/package/*.zip -d $STEAM_CONTENT_DIR_WINDOWS/
7979

8080
# Setup steamworks depot build
81+
CMD=$0
82+
UNAME=$(uname -snmo)
83+
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
84+
GIT_TAG=$(git describe --tags --abbrev=0)
85+
GIT_COMMIT=$(git rev-parse --short HEAD)
86+
8187
cat << EOT >> $STEAM_BUILD_DIR/app_build.vdf
8288
"AppBuild"
8389
{
8490
"AppID" "931040" // your AppID
85-
"Desc" "Vagrant provider:Docker, Ubuntu 24.04" // internal description for this build
91+
"Desc" "$CMD, $UNAME, $GIT_BRANCH, $GIT_TAG, $GIT_COMMIT" // internal description for this build
8692
"verbose" "0" // spew more build details in console
8793
"preview" "0" // make this a preview build only, nothing is uploaded
8894
@@ -115,6 +121,6 @@ EOT
115121

116122
# Running the steam command build
117123
steamcmd \
118-
+login $STEAM_USR $STEAM_PWD \
119-
+run_app_build $(pwd)/$STEAM_BUILD_DIR/app_build.vdf \
124+
+login "$STEAM_USR" "$STEAM_PWD" \
125+
+run_app_build "$(pwd)/$STEAM_BUILD_DIR/app_build.vdf" \
120126
+quit

0 commit comments

Comments
 (0)