tsm/config.nims

26 lines
604 B
Text
Raw Normal View History

2023-11-10 13:51:30 -06:00
import std/[strformat, strutils]
2023-09-05 13:36:33 -05:00
task debugTui, "debug tui":
exec "nim -d:debug c -r src/tui.nim"
2023-11-10 13:51:30 -06:00
task build, "build app":
selfExec "c -o:bin/tsm src/tsm.nim"
task release, "build release assets":
version = (gorgeEx "git describe --tags --always --match 'v*'").output
exec &"forge release -v {version} -V"
task bundle, "package build assets":
withDir "dist":
for dir in listDirs("."):
echo dir
let cmd = if "windows" in dir:
&"7z a {dir}.zip {dir}"
else:
&"tar czf {dir}.tar.gz {dir}"
cpFile("../README.md", &"{dir}/README.md")
exec cmd