chore: update to nim 2.0

This commit is contained in:
Daylin Morgan 2023-09-19 14:39:02 -05:00
parent 3dc18955e1
commit 34575e05e7
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
2 changed files with 2 additions and 4 deletions

View file

@ -1,2 +0,0 @@
--mm:orc
--threads:on

View file

@ -11,7 +11,7 @@ binDir = "bin"
# Dependencies # Dependencies
requires "nim >= 1.6.12", requires "nim >= 2.0.0",
"nimsvg" "nimsvg"
proc getSvgs(): seq[string] = proc getSvgs(): seq[string] =
@ -21,6 +21,6 @@ proc makePng(svg: string) =
echo svg & " -> " & svg.replace("svg","png") echo svg & " -> " & svg.replace("svg","png")
exec "inkscape --export-filename=" & svg.replace("svg","png") & " " & svg exec "inkscape --export-filename=" & svg.replace("svg","png") & " " & svg
task pngs, "fetch dependencies": task pngs, "generate pngs":
for svg in getSvgs(): for svg in getSvgs():
makePng(svg) makePng(svg)