mirror of
https://github.com/daylinmorgan/tsm.git
synced 2024-11-16 09:18:32 -06:00
34 lines
742 B
Nim
34 lines
742 B
Nim
# Package
|
|
|
|
version = "2023.1001"
|
|
author = "Daylin Morgan"
|
|
description = "tmux session manager"
|
|
license = "MIT"
|
|
srcDir = "src"
|
|
bin = @["tsm"]
|
|
binDir = "bin"
|
|
|
|
# Dependencies
|
|
|
|
requires "nim >= 2.0.0",
|
|
"illwill",
|
|
"cligen",
|
|
"bbansi"
|
|
|
|
import strformat
|
|
|
|
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("."):
|
|
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
|
|
|
|
|