Skip to content

Commit 1285a2c

Browse files
committed
Nimble file updated
1 parent 0067a7f commit 1285a2c

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

nmqtt.nimble

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,34 @@
11
# Package
2-
version = "0.0.1"
3-
author = "zevv"
4-
description = "Native MQTT client library and binaries"
2+
version = "1.0.0"
3+
author = "zevv & ThomasTJdev"
4+
description = "Native MQTT library and binaries for publishing, subscribing and broker"
55
license = "MIT"
66
srcDir = "src"
7+
binDir = "bin"
78
installFiles = @["nmqtt.nim"]
9+
installDirs = @["config"]
810
bin = @["nmqtt", "nmqtt_password", "nmqtt_pub", "nmqtt_sub"]
911

1012

1113
# Dependencies
1214
requires "nim >= 1.0.6"
1315
requires "bcrypt >= 0.2.1"
14-
requires "https://github.com/c-blake/cligen#36d5218"
16+
requires "cligen >= 0.9.45"
1517

1618
from strutils import format
1719

20+
21+
task test, "Runs the test suite.":
22+
exec "nimble c -y -r test/tester"
23+
24+
1825
after install:
1926
var path: string
2027

2128
echo "\nGenerate default nmqtt.conf? (y/N)"
2229
let genConf = readLineFromStdin()
2330
if genConf == "y" or genConf == "Y":
24-
let confPath = "/home/" & getEnv("USER") & "/.config/nmqtt"
31+
let confPath = "/home/" & getEnv("USER") & "/.nmqtt"
2532
echo "\nAbsolute path to nmqtt config folder. Default: " & confPath
2633

2734
path = readLineFromStdin()

0 commit comments

Comments
 (0)