windows
Factor handbook > The implementation > System interface > Operating system detection

Prev:macosx
Next:unix


Vocabulary
system

Definition


Methods

M: windows cert-path home "config/FactorSPC.pfx" append-path ;



M: windows compile-factor-command
{ "nmake" "/f" "NMakefile" "x86-64" } ;



M: windows compile-factor-command
{ "nmake" "/f" "NMakefile" } cell-bits 64 =
"x86-64-vista" "x86-32-vista" ? suffix ;



M: windows dll-list
{
"resource:libcrypto-37.dll"
"resource:libssl-38.dll"
"resource:libtls-10.dll"
"resource:sqlite3.dll"
} ;



M: windows factor-path "./factor.com" ;



M: windows factor-path "./factor.com" ;



M: windows find-geany-path
{
[ { "Geany" } "geany.exe" find-in-applications ]
[ "Geany.exe" ]
} 0|| ;



M: windows find-sublime-path
{
[ { "Sublime Text 3" } "subl.exe" find-in-applications ]
[
{ "Sublime Text 2" } "sublime_text.exe"
find-in-applications
]
[ "subl.exe" ]
} 0|| ;






M: windows hosts-path
"SystemRoot" os-env "System32/drivers/etc/hosts" append-path
;









M:: windows sign-factor-app ( -- )
{ "factor.com" "factor.exe" } [
[ { "signtool" "sign" "/v" "/f" f } ] dip
make-factor-path suffix short-running-process
] each ;