Skip to content

Commit

Permalink
Merge pull request #146 from ruiiiijiiiiang/mac-install-fix
Browse files Browse the repository at this point in the history
fixed mac install script
  • Loading branch information
iinsertNameHere authored Nov 10, 2024
2 parents b7e1776 + c46bf5c commit 2a2bbfa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config.nims
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2a2bbfa

Please sign in to comment.