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

Prev:macosx
Next:unix


Vocabulary
system

Definition


Methods

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
cpu x86.64 = {
"resource:libcrypto-3-x64.dll"
"resource:libssl-3-x64.dll"
} { "resource:libcrypto-3.dll" "resource:libssl-3.dll" } ?
{ "resource:sqlite3.dll" } append ;



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-kate-path
{ "Kate" } "kate.exe" find-in-applications
[ "kate.exe" ] unless* ;






M: windows find-notepadnext-path
{ "Notepad Next" } "NotepadNext.exe" find-in-applications
[ "NotepadNext.exe" ] unless* ;



M: windows find-scite-path
{ "Scintilla Text Editor" "SciTE Source Code Editor" }
"scite.exe" find-in-applications [ "scite.exe" ] unless* ;



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 find-textadept-path
{ "textadept_6.5.win32" } "textadept.exe"
find-in-applications [ "textadept.exe" ] unless* ;



M: windows find-ultraedit
{ "IDM Computer Solutions" } "uedit32.exe"
find-in-applications [ "uedit32.exe" ] unless* ;



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






M:: windows sign-factor-app ( -- )
{
"factor.com"
"factor.exe"
"factor.dll"
"libfactor-ffi-test.dll"
} [
{
"signtool"
"sign"
"/v"
"/tr"
"http://timestamp.digicert.com"
"/td"
"SHA256"
"/fd"
"SHA256"
"/a"
} swap make-factor-path suffix short-running-process
] each ;