1. 登录开发者帐号,去steam下载steamworks_sdk
2. 解压放入文件夹中(假设放在D盘根目录下steamworks_sdk),注意(steam works不支持文件路径之中带有空格(中文更别想了),否则在构建的时候会返回错误)
3. 打开D:\steamworks_sdk\tools\ContentBuilder\scripts ,里面有两个Scripts
用记事本打开脚本,首先是app_build_765640:
{
"appid" "765640"//写你的APP ID
"desc" "Your build description here" //不用动,维持默认即可
"buildoutput" "..\output\" //维持默认即可
"contentroot" "..\content\" //维持默认即可
"setlive" "" //维持默认即可
"preview" "0" //维持默认即可
"local" "" //维持默认即可
"depots"
{
"765641" "depot_build_233331.vdf"//定义deport文件
}
}
然后是deport_build_765641
"DepotBuildConfig"
{
// 写你的deport ID
"DepotID" "233331"
// 定义根目录,我是直接写的绝对路径
"ContentRoot" "D:\steamworks_sdk_139\tools\ContentBuilder\content\"
// include all files recursivley
"FileMapping"
{
// 填写你游戏文件存放的路径,*代表包含该目录下的所有文件
"LocalPath" "D:\steamworks_sdk_139\tools\ContentBuilder\content\你的游戏名\*"
//后面维持默认即可
// 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"
}
按照目前配置的路径,将你的项目放进D:\steamworks_sdk_139\tools\ContentBuilder\content文件夹下
4. 打开steamworks_sdk\tools\ContentBuilder\builder 双击运行 steamcmd.exe
5.打开之后它会自动的下载和安装更新
首先你需要登录——如果你的账号是2333,密码是23330,开启了手机令牌而且令牌目前的秘钥是UTAWA
那么你就需要输入 login 2333 23330 UTAWA
好了,在登陆之后,就可以开始打包和上传啦~
输入: run_app_build D:\steamworks_sdk\tools\ContentBuilder\scripts\app_build_233330.vdf
敲击回车,耐心等待上传完成即可
6.接着登录steam后台,访问技术工具-编辑steamworks 设置
打开steam pipe-生成版本
找到你刚上传的build,设置为default,点击预览更改
进入这个界面,它会比较和上一个default的差异,并且告诉你需要下载多少,需要多少磁盘空间
点击Set Build Live Now,你的项目就上传成功了!