Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e601e8f

Browse files
authored
Merge pull request #1640 from sogaiu/add-some-windows-commentary
Improve windows-related docs and notes
2 parents 8e7b1e9 + 07cf636 commit e601e8f

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

build_win.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ for %%f in (src\boot\*.c) do (
4949
)
5050
%JANET_LINK% /out:build\janet_boot.exe build\boot\*.obj
5151
@if errorlevel 1 goto :BUILDFAIL
52+
@rem note that there is no default sysroot being baked in
5253
build\janet_boot . > build\c\janet.c
5354
@if errorlevel 1 goto :BUILDFAIL
5455

janet.1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Don't execute a script, only compile it to check for errors. Useful for linting
214214
.BR \-m\ syspath
215215
Set the dynamic binding :syspath to the string syspath so that Janet will load system modules
216216
from a directory different than the default. The default is set when Janet is built, and defaults to
217-
/usr/local/lib/janet on Linux/Posix, and C:/Janet/Library on Windows. This option supersedes JANET_PATH.
217+
/usr/local/lib/janet on Linux/Posix. On Windows, there is no default value. This option supersedes JANET_PATH.
218218

219219
.TP
220220
.BR \-c\ source\ output
@@ -255,8 +255,7 @@ and then arguments to the script.
255255
.RS
256256
The location to look for Janet libraries. This is the only environment variable Janet needs to
257257
find native and source code modules. If no JANET_PATH is set, Janet will look in
258-
the default location set at compile time. This should be a list of as well as a colon
259-
separate list of such directories.
258+
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.
260259
.RE
261260

262261
.B JANET_PROFILE

tools/msi/janet.wxs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@
3737
Version="$(var.Version)"
3838
Manufacturer="$(var.Manufacturer)"
3939
UpgradeCode="$(var.UpgradeCode)">
40+
<!--
41+
perUser means destination will be under user's %AppData% directory,
42+
not Program Files or similar.
43+
44+
see: https://learn.microsoft.com/en-us/windows/win32/msi/installation-context
45+
-->
4046
<Package Compressed="yes"
4147
InstallScope="perUser"
4248
Manufacturer="$(var.Manufacturer)"

0 commit comments

Comments
 (0)