chore: syntax

This commit is contained in:
Daylin Morgan 2024-09-13 14:22:06 -05:00
parent 73a6fe2738
commit 2dcb4f9640
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -18,10 +18,9 @@ task bundle, "package build assets":
withDir "dist": withDir "dist":
for dir in listDirs("."): for dir in listDirs("."):
echo dir echo dir
let cmd = if "windows" in dir: let cmd =
&"7z a {dir}.zip {dir}" if "windows" in dir: &"7z a {dir}.zip {dir}"
else: else: &"tar czf {dir}.tar.gz {dir}"
&"tar czf {dir}.tar.gz {dir}"
cpFile("../README.md", &"{dir}/README.md") cpFile("../README.md", &"{dir}/README.md")
exec cmd exec cmd