logo/logo.nimble

27 lines
595 B
Text
Raw Permalink Normal View History

2023-04-21 08:39:19 -05:00
# Package
version = "0.1.0"
author = "Daylin Morgan"
description = "Daylin's handy logo generator"
license = "MIT"
srcDir = "src"
bin = @["logo"]
binDir = "bin"
# Dependencies
2023-09-19 14:39:02 -05:00
requires "nim >= 2.0.0",
2023-04-21 08:39:19 -05:00
"nimsvg"
proc getSvgs(): seq[string] =
(gorgeEx "find -type f -wholename \"./docs/*.svg\"").output.split("\n")
proc makePng(svg: string) =
echo svg & " -> " & svg.replace("svg","png")
exec "inkscape --export-filename=" & svg.replace("svg","png") & " " & svg
2023-09-19 14:39:02 -05:00
task pngs, "generate pngs":
2023-04-21 08:39:19 -05:00
for svg in getSvgs():
makePng(svg)