-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempting to support workshop mods too...
- Loading branch information
1 parent
0db18eb
commit 5c0cc65
Showing
4 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
#!/bin/bash | ||
|
||
pushd ${STEAM_APP_PATH} | ||
|
||
MOD_LIST_ARGS="" | ||
if [ -f modlist.txt ]; then | ||
while read line; do | ||
[[ "$line" =~ ^#.*$ ]] && continue | ||
MOD_LIST_ARGS="${MOD_LIST_ARGS} +app_set_config ${STEAM_APP_ID} mod ${line}" | ||
done <modlist.txt | ||
fi | ||
|
||
echo "Using modline: ${MOD_LIST_ARGS}" | ||
|
||
popd | ||
|
||
pushd ${STEAMCMDDIR} | ||
./steamcmd.sh \ | ||
+force_install_dir "${STEAM_APP_PATH}" \ | ||
+login anonymous \ | ||
+app_update ${STEAM_APP_ID} validate \ | ||
+quit | ||
+force_install_dir "${STEAM_APP_PATH}" \ | ||
+login anonymous \ | ||
+app_update ${STEAM_APP_ID} validate \ | ||
${MOD_LIST_ARGS} \ | ||
+quit | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Put your workshop mod IDs between these two comments | ||
# EOF - The parser needs a blank line at the end |