Mercurial > games > semicongine
diff config.nims @ 1140:5934c5615f13
did: update all examples to work with latest refactoring
author | sam <sam@basx.dev> |
---|---|
date | Sat, 08 Jun 2024 15:16:17 +0700 |
parents | 6406766a222d |
children | 2e0b527c2753 |
line wrap: on
line diff
--- a/config.nims Sat Jun 08 14:58:25 2024 +0700 +++ b/config.nims Sat Jun 08 15:16:17 2024 +0700 @@ -54,6 +54,11 @@ exec("nim build_dev_zip --run tests/test_resources.nim") exec("nim build_dev_dir --run tests/test_resources.nim") +task example_all, "Run all example programs": + for file in listFiles("examples"): + if file.endsWith(".nim"): + exec(&"nim build_dev --run {file}") + task publish, "publish all build": for file in listDirs("build/debug/linux"): exec(&"scp -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/linux/")