changeset 964:3c17ac18166e

add: initial code for automated steam builds
author sam <sam@basx.dev>
date Wed, 03 Apr 2024 13:00:33 +0700
parents 9d3f6d742e65
children 7e164048c85c
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):