diff config.nims @ 709:3b00747b2451

did: few fixes
author Sam <sam@basx.dev>
date Tue, 23 May 2023 16:24:15 +0700
parents 275ac4cdf7e0
children f31d848ab551
line wrap: on
line diff
--- a/config.nims	Tue May 23 01:05:06 2023 +0700
+++ b/config.nims	Tue May 23 16:24:15 2023 +0700
@@ -70,14 +70,14 @@
   exec(&"rm -rf {BUILDBASE}")
 
 task publish, "publish all build":
-  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 listDirs("build/debug/linux"):
+    exec(&"rsync -r {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/")
+    exec(&"rsync -r {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/")
+    exec(&"rsync -r {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/")
+    exec(&"rsync -r {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"