diff config.nims @ 514:86629e31543e

add: improve build on windows
author Sam <sam@basx.dev>
date Thu, 19 Jan 2023 22:49:12 +0700
parents 15e78601b390
children a24c6b87ae83
line wrap: on
line diff
--- a/config.nims	Thu Jan 19 17:39:32 2023 +0700
+++ b/config.nims	Thu Jan 19 22:49:12 2023 +0700
@@ -108,6 +108,15 @@
 task publish, "publish all build":
   exec("rsync -rv build/ basx.dev:/var/www/public.basx.dev/semicongine")
 
+  for file in listFiles("build/debug/linux"):
+    exec(&"scp {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/linux/")
+  for file in listFiles("build/release/linux"):
+    exec(&"scp {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/release/linux/")
+  for file in listFiles("build/debug/windows"):
+    exec(&"scp {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/windows/")
+  for file in listFiles("build/release/windows"):
+    exec(&"scp {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/release/windows/")
+
 task glslangValidator, "Download glslangValidator (required for linux compilation)":
   let dirname="/tmp/glslang_download"
   exec &"mkdir -p {dirname}"