Update config.nims

This commit is contained in:
Sangelo 2023-10-05 10:10:01 +02:00
parent ab6d8e8fa3
commit aa0b2f7222
2 changed files with 10 additions and 10 deletions

View file

@ -25,27 +25,27 @@ task build, "Compile the project for intermediate builds":
createDirectory("build") ## Ensure the build directory exists
exec "nim c -o:build/dashinit src/main.nim" ## Compile the main project file into the build directory
# Distribution task for final builds
task dist, "Compile the project for distribution":
createDirectory("dist") ## Ensure the directory exists
exec "nim c -o:dist/dashinit src/main.nim" ## Compile the main project file into the dist directory
# # Distribution task for final builds
# task dist, "Compile the project for distribution":
# createDirectory("dist") ## Ensure the directory exists
# exec "nim c -o:dist/dashinit src/main.nim" ## Compile the main project file into the dist directory
# Dev task (Compiles and runs main.nim)
task dev, "Run tests":
switch("undef", "release") ## Unset the release switch for this task
createDirectory("dev") ## Ensure dev directory exists
exec "nim c -o:dev/dashinit -r src/main.nim"
createDirectory("build/dev") ## Ensure dev directory exists
exec "nim c -o:build/dev/dashinit -r src/main.nim"
# Clean task to remove generated files
task clean, "Clean up generated files":
removeFileOrDir("build/*")
removeFileOrDir("dist/*")
removeFileOrDir("dev/*")
# removeFileOrDir("dist/*")
# removeFileOrDir("dev/*")
task deepclean, "Clean up by removing build/ and dist/ directories":
removeFileOrDir("build/")
removeFileOrDir("dist/")
removeFileOrDir("dev/")
# removeFileOrDir("dist/")
# removeFileOrDir("dev/")
#### Aliases ####

BIN
src/main

Binary file not shown.