File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 "
55license = " MIT"
66srcDir = " src"
7+ binDir = " bin"
78installFiles = @ [" nmqtt.nim" ]
9+ installDirs = @ [" config" ]
810bin = @ [" nmqtt" , " nmqtt_password" , " nmqtt_pub" , " nmqtt_sub" ]
911
1012
1113# Dependencies
1214requires " nim >= 1.0.6"
1315requires " bcrypt >= 0.2.1"
14- requires " https://github.com/c-blake/ cligen#36d5218 "
16+ requires " cligen >= 0.9.45 "
1517
1618from strutils import format
1719
20+
21+ task test, " Runs the test suite." :
22+ exec " nimble c -y -r test/tester"
23+
24+
1825after install:
1926 var path: string
2027
2128 echo " \n Generate 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 " \n Absolute path to nmqtt config folder. Default: " & confPath
2633
2734 path = readLineFromStdin ()
You can’t perform that action at this time.
0 commit comments