# HG changeset patch # User sam # Date 1714299572 -25200 # Node ID d601358b659e391779e6227c9604a6761404c14b # Parent ac15ef062e294f92546645ff91406285462bab0f add: cleanu for dist-zip files diff -r ac15ef062e29 -r d601358b659e semicongine/build.nim --- a/semicongine/build.nim Sat Apr 27 17:21:47 2024 +0700 +++ b/semicongine/build.nim Sun Apr 28 17:19:32 2024 +0700 @@ -66,6 +66,8 @@ for resourceDir in resourceRoot.listDirs(): let outputfile = joinPath(outdir_resources, resourceDir.splitPath().tail & ".zip") withdir resourceDir: + if outputfile.fileExists: + outputfile.rmFile() if defined(linux): echo &"zip -r {relativePath(outputfile, resourceDir)} ." exec &"zip -r {relativePath(outputfile, resourceDir)} ."