tsm/tsm.nimble

35 lines
742 B
Text
Raw Normal View History

2023-09-05 13:36:33 -05:00
# Package
version = "2023.1001"
author = "Daylin Morgan"
description = "tmux session manager"
license = "MIT"
srcDir = "src"
bin = @["tsm"]
binDir = "bin"
# Dependencies
2023-09-05 17:09:12 -05:00
requires "nim >= 2.0.0",
2023-09-05 13:36:33 -05:00
"illwill",
"cligen",
"bbansi"
2023-09-05 13:36:33 -05:00
import strformat
task release, "build release assets":
2023-09-08 00:34:48 -05:00
version = (gorgeEx "git describe --tags --always --match 'v*'").output
exec &"forge release -v {version} -V"
2023-09-05 13:36:33 -05:00
task bundle, "package build assets":
2023-09-08 00:34:48 -05:00
withDir "dist":
for dir in listDirs("."):
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
2023-09-05 13:36:33 -05:00