mirror of
https://github.com/daylinmorgan/tsm.git
synced 2024-12-21 20:50:45 -06:00
build: improve nimble support
This commit is contained in:
parent
5abc698a82
commit
31bfbc1a94
4 changed files with 56 additions and 5 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
@ -1,6 +1,12 @@
|
|||
/src/tui
|
||||
/dist
|
||||
/bin
|
||||
|
||||
# atlas
|
||||
src/nim.cfg
|
||||
src/nim.cfg
|
||||
*.workspace
|
||||
|
||||
# nimble
|
||||
nimbledeps
|
||||
nimble.develop
|
||||
nimble.paths
|
||||
|
|
|
@ -7,6 +7,9 @@ task debugTui, "debug tui":
|
|||
task build, "build app":
|
||||
selfExec "c -o:bin/tsm src/tsm.nim"
|
||||
|
||||
task buildRelease, "build app":
|
||||
selfExec "c -d:release -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"
|
||||
|
@ -23,3 +26,8 @@ task bundle, "package build assets":
|
|||
exec cmd
|
||||
|
||||
|
||||
# begin Nimble config (version 2)
|
||||
--noNimblePath
|
||||
when withDir(thisDir(), system.fileExists("nimble.paths")):
|
||||
include "nimble.paths"
|
||||
# end Nimble config
|
||||
|
|
36
nimble.lock
Normal file
36
nimble.lock
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
"version": 2,
|
||||
"packages": {
|
||||
"bbansi": {
|
||||
"version": "0.1.0",
|
||||
"vcsRevision": "a7eb31407d50bb773bebc8b590ae25fa5af1bbec",
|
||||
"url": "https://github.com/daylinmorgan/bbansi",
|
||||
"downloadMethod": "git",
|
||||
"dependencies": [],
|
||||
"checksums": {
|
||||
"sha1": "1a4ea3d954edf4d76202237e4848ed56e468a0f2"
|
||||
}
|
||||
},
|
||||
"cligen": {
|
||||
"version": "1.7.0",
|
||||
"vcsRevision": "4193f802796f15559c81c6dd56724d6f20345917",
|
||||
"url": "https://github.com/c-blake/cligen.git",
|
||||
"downloadMethod": "git",
|
||||
"dependencies": [],
|
||||
"checksums": {
|
||||
"sha1": "300bd7fdb6e48d2d98e34ed0661206b50331e99c"
|
||||
}
|
||||
},
|
||||
"illwill": {
|
||||
"version": "0.3.3",
|
||||
"vcsRevision": "6ba6045038a01d1855208c4a9be7d4826d774001",
|
||||
"url": "https://github.com/inv2004/illwill/",
|
||||
"downloadMethod": "git",
|
||||
"dependencies": [],
|
||||
"checksums": {
|
||||
"sha1": "c1971885588771d9c413d5b6ade93237e8f1635a"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tasks": {}
|
||||
}
|
|
@ -10,8 +10,9 @@ binDir = "bin"
|
|||
|
||||
# Dependencies
|
||||
|
||||
requires "nim >= 2.0.0",
|
||||
"illwill",
|
||||
"cligen",
|
||||
"https://github.com/daylinmorgan/bbansi#main"
|
||||
requires "nim >= 2.0.0"
|
||||
requires "https://github.com/inv2004/illwill/#6ba6045038a01d1855208c4a9be7d4826d774001"
|
||||
# requires "illwill == 0.3.2",
|
||||
requires "cligen"
|
||||
requires "https://github.com/daylinmorgan/bbansi >= 0.1.0"
|
||||
|
||||
|
|
Loading…
Reference in a new issue