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)