From 07cf63622f9f43691d936e96685b0e767ac1de90 Mon Sep 17 00:00:00 2001 From: sogaiu <983021772@users.noreply.github.com> Date: Thu, 11 Sep 2025 14:14:07 +0900 Subject: [PATCH] Improve windows-related docs and notes --- build_win.bat | 1 + janet.1 | 5 ++--- tools/msi/janet.wxs | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/build_win.bat b/build_win.bat index 5a0da53e..342ee681 100644 --- a/build_win.bat +++ b/build_win.bat @@ -49,6 +49,7 @@ for %%f in (src\boot\*.c) do ( ) %JANET_LINK% /out:build\janet_boot.exe build\boot\*.obj @if errorlevel 1 goto :BUILDFAIL +@rem note that there is no default sysroot being baked in build\janet_boot . > build\c\janet.c @if errorlevel 1 goto :BUILDFAIL diff --git a/janet.1 b/janet.1 index 9e7c0ae2..b2afd7c4 100644 --- a/janet.1 +++ b/janet.1 @@ -214,7 +214,7 @@ Don't execute a script, only compile it to check for errors. Useful for linting .BR \-m\ syspath Set the dynamic binding :syspath to the string syspath so that Janet will load system modules from a directory different than the default. The default is set when Janet is built, and defaults to -/usr/local/lib/janet on Linux/Posix, and C:/Janet/Library on Windows. This option supersedes JANET_PATH. +/usr/local/lib/janet on Linux/Posix. On Windows, there is no default value. This option supersedes JANET_PATH. .TP .BR \-c\ source\ output @@ -255,8 +255,7 @@ and then arguments to the script. .RS The location to look for Janet libraries. This is the only environment variable Janet needs to find native and source code modules. If no JANET_PATH is set, Janet will look in -the default location set at compile time. This should be a list of as well as a colon -separate list of such directories. +the default location set at compile time. This should be a colon-separated list of directory names on Linux/Posix, and a semicolon-separated list on Windows. Note that a typical setup (i.e. not NixOS / Guix) will only use a single directory. .RE .B JANET_PROFILE diff --git a/tools/msi/janet.wxs b/tools/msi/janet.wxs index 1d2f60d5..d14cfa5a 100644 --- a/tools/msi/janet.wxs +++ b/tools/msi/janet.wxs @@ -37,6 +37,12 @@ Version="$(var.Version)" Manufacturer="$(var.Manufacturer)" UpgradeCode="$(var.UpgradeCode)"> +