# HG changeset patch # User sam # Date 1714299740 -25200 # Node ID 2762e6dd5f90592a42aebd27a9a8a2e6b20565eb # Parent 2f45a598f6ebccbd51d831a33836484311634754 fix: wrong place diff -r 2f45a598f6eb -r 2762e6dd5f90 semicongine/build.nim --- a/semicongine/build.nim Sun Apr 28 17:20:17 2024 +0700 +++ b/semicongine/build.nim Sun Apr 28 17:22:20 2024 +0700 @@ -66,8 +66,6 @@ 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)} ." @@ -86,6 +84,9 @@ proc semicongine_zip*(dir: string) = withdir dir.parentDir: + let zipFile = dir.lastPathPart & ".zip" + if zipFile.fileExists: + zipFile.rmFile() if defined(linux): exec &"zip -r {dir.lastPathPart} {dir.lastPathPart}" elif defined(windows):