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-kate-path
{ "Kate" } "kate.exe" find-in-applications
[ "kate.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" } [
{
"signtool"
"sign"
"/fd"
"SHA256"
"/v"
"/f"
"/Users/jbenedik/config/mac_app.cer"
"/tr"
"http://time.certum.pl"
"/td"
"SHA256"
} swap make-factor-path suffix short-running-process
] each ;