From 7bee20439088e897ff23dee1df7903f875dabe9a Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sun, 22 Sep 2019 13:19:02 -0400 Subject: [PATCH] Fix installer. --- auxbin/jpm | 3 ++- janet-installer.nsi | 4 ++-- src/core/os.c | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/auxbin/jpm b/auxbin/jpm index c79401e0..c530d239 100755 --- a/auxbin/jpm +++ b/auxbin/jpm @@ -236,7 +236,8 @@ "Take a source file path and convert it to an output path." [path from-ext to-ext] (->> path - (string/replace-all sep "___") + (string/replace-all "\\" "___") + (string/replace-all "/" "___") (string/replace-all from-ext to-ext) (string "build" sep))) diff --git a/janet-installer.nsi b/janet-installer.nsi index d45f6add..0572d257 100644 --- a/janet-installer.nsi +++ b/janet-installer.nsi @@ -1,6 +1,6 @@ # Version -!define VERSION "1.3.0" -!define PRODUCT_VERSION "${VERSION}.0" +!define VERSION "1.3.1" +!define PRODUCT_VERSION "${VERSION}.1" VIProductVersion "${PRODUCT_VERSION}" VIFileVersion "${PRODUCT_VERSION}" diff --git a/src/core/os.c b/src/core/os.c index caab615a..c7530bd5 100644 --- a/src/core/os.c +++ b/src/core/os.c @@ -295,7 +295,7 @@ static Janet os_execute(int32_t argc, Janet *argv) { #ifdef JANET_WINDOWS JanetBuffer *buf = os_exec_escape(exargs); - if (buf->count > 1025) { + if (buf->count > 8191) { janet_panic("command line string too long"); } const char *path = (const char *) janet_unwrap_string(exargs.items[0]);