From 31bfbc1a94c799adcda3ebd96a189e965815d1f3 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 18 Mar 2024 16:19:33 -0500 Subject: [PATCH] build: improve nimble support --- .gitignore | 8 +++++++- config.nims | 8 ++++++++ nimble.lock | 36 ++++++++++++++++++++++++++++++++++++ tsm.nimble | 9 +++++---- 4 files changed, 56 insertions(+), 5 deletions(-) create mode 100644 nimble.lock diff --git a/.gitignore b/.gitignore index 74a9e14..c0ed70c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,12 @@ /src/tui /dist /bin + # atlas -src/nim.cfg +src/nim.cfg *.workspace + +# nimble +nimbledeps +nimble.develop +nimble.paths diff --git a/config.nims b/config.nims index abf7073..7ad92c2 100644 --- a/config.nims +++ b/config.nims @@ -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 diff --git a/nimble.lock b/nimble.lock new file mode 100644 index 0000000..21cd8fc --- /dev/null +++ b/nimble.lock @@ -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": {} +} diff --git a/tsm.nimble b/tsm.nimble index 3290492..8d9eced 100644 --- a/tsm.nimble +++ b/tsm.nimble @@ -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"