mirror of
https://github.com/daylinmorgan/tsm.git
synced 2024-12-22 05:00:44 -06:00
chore: syntax
This commit is contained in:
parent
73a6fe2738
commit
2dcb4f9640
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue