From e0ae7acf8c393995fb87499a7ff55844a0b7a4a2 Mon Sep 17 00:00:00 2001 From: Antonis Geralis Date: Mon, 20 May 2024 14:15:21 +0300 Subject: [PATCH] fix on windows --- naylib.nimble | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/naylib.nimble b/naylib.nimble index 74d31e9..f47abb6 100644 --- a/naylib.nimble +++ b/naylib.nimble @@ -35,5 +35,7 @@ after install: var src = readFile("raylib.nim") let first = find(src, "raylibDir") let skipped = skipUntil(src, '\n', start = first) - src[first..first+skipped-1] = "raylibDir = Path\"" & (PkgDir / "src/raylib/src") & "\"" + let dir = when defined(windows): "r(\"" & (PkgDir / "src/raylib/src") & "\")" + else: "\"" & (PkgDir / "src/raylib/src") & "\"" + src[first..first+skipped-1] = "raylibDir = Path" & dir writeFile("raylib.nim", src)