From c46bf5c8c0adbd0b01d20a2d88b2e38fc24a3821 Mon Sep 17 00:00:00 2001 From: Rui Jiang Date: Sat, 9 Nov 2024 20:50:19 -0600 Subject: [PATCH] fixed mac install script --- config.nims | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config.nims b/config.nims index 50ec081..73a7145 100644 --- a/config.nims +++ b/config.nims @@ -49,12 +49,18 @@ proc configure() = else: cpFile(thisDir() & "/config/distros.toml", configpath & "distros.toml") +task clean, "Cleans existing build": + echo "\e[36;1mCleaning\e[0;0m existing build" + rmFile("{thisDir()}/bin/catnap") + task release, "Builds the project in release mode": + cleanTask() echo "\e[36;1mBuilding\e[0;0m in release mode" exec &"./scripts/git-commit-id.sh" compile(true) task debug, "Builds the project in debug mode": + cleanTask() echo "\e[36;1mBuilding\e[0;0m in debug mode" exec &"./scripts/git-commit-id.sh" compile(false)