Mercurial > games > semicongine
changeset 1073:56e3fb525527
add: initial code for automated steam builds
author | sam <sam@basx.dev> |
---|---|
date | Wed, 03 Apr 2024 13:00:33 +0700 |
parents | d967f9029695 |
children | bc5b4cd97582 |
files | semicongine/build.nim |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/semicongine/build.nim Tue Apr 02 23:06:39 2024 +0700 +++ b/semicongine/build.nim Wed Apr 03 13:00:33 2024 +0700 @@ -111,3 +111,13 @@ echo &"{target} is up-to-date" import_meshes meshfiles import_audio audiofiles + +const STEAM_DIR_NAME = "steamcmd" + +proc semicongine_steam*() = + if not defined(linux): + echo "steam builds must be done on linux for now" + return + + let steamdir = thisDir().joinPath(STEAM_DIR_NAME) + if not dirExists(steamdir):