# HG changeset patch # User sam # Date 1714299740 -25200 # Node ID e61aed76463e26320e25e6d7b06c3a191fddd1b8 # Parent 8c29e8b8ced9495458b84306aa67be8cfab3f005 fix: wrong place diff -r 8c29e8b8ced9 -r e61aed76463e 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):