Last active
February 16, 2017 17:24
-
-
Save antionio/632ca61c4c5c968ad65e58ad20665a75 to your computer and use it in GitHub Desktop.
Shell script that creates the Steam app and depot configuration files
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
touch app_build_123456.vdf | |
echo '"appbuild" | |
{ | |
"appid" "123456" | |
"desc" "Your build description here" // description for this build | |
"contentroot" "content\" // root content folder, relative to location of this file | |
"buildoutput" "output\" // build output folder for .log, .csm & .csd files, relative to location of this file | |
"setlive" "" // branch to set live after successful build, non if empty | |
"preview" "0" // to enable preview builds | |
"local" "" // set to flie path of local content server | |
"depots" | |
{ | |
"1234567" "depot_build_1234567.vdf" | |
} | |
}' > app_build_123456.vdf | |
touch depot_build_1234567.vdf | |
echo '"DepotBuildConfig" | |
{ | |
// Set your assigned depot ID here | |
"DepotID" "1234567" | |
// Set a root for all content. | |
// All relative paths specified below (LocalPath in FileMapping entries, and FileExclusion paths) | |
// will be resolved relative to this root. | |
// If you dont define ContentRoot, then it will be assumed to be | |
// the location of this script file, which probably isnt what you want | |
"ContentRoot" "win32\" | |
// include all files recursivley | |
"FileMapping" | |
{ | |
// This can be a full path, or a path relative to ContentRoot | |
"LocalPath" "*" | |
// This is a path relative to the install folder of your game | |
"DepotPath" "." | |
// If LocalPath contains wildcards, setting this means that all | |
// matching files within subdirectories of LocalPath will also | |
// be included. | |
"recursive" "1" | |
} | |
// but exclude all symbol files | |
// This can be a full path, or a path relative to ContentRoot | |
"FileExclusion" "*.pdb" | |
}' > depot_build_1234567.vdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment