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

Prev:linux
Next:windows


Vocabulary
system

Definition


Methods

M: macosx >deployed-library-path
file-name "@executable_path/../Frameworks" prepend-path ;






M: macosx brackets-path
"io.brackets.appshell" find-native-bundle
[ "Contents/MacOS/Brackets" append-path ] [ f ] if* ;



M: macosx cert-path home "config/mac_app.cer" append-path ;



M: macosx find-sublime-path
{ "com.sublimetext.3" "com.sublimetext.2" }
[ find-native-bundle ] map-find drop
[ "Contents/SharedSupport/bin/subl" append-path ] [ f ] if*
;



M: macosx find-visual-studio-code-invocation
"com.microsoft.VSCode" find-native-bundle
[ "Contents/MacOS/Electron" append-path ] [ f ] if* ;






M: macosx modifiers>string
[
{
{ A+ [ "⌘" ] }
{ M+ [ "⌥" ] }
{ S+ [ "⇧" ] }
{ C+ [ "⌃" ] }
} case
] map "" concat-as ;



M: macosx nvcc-path "/usr/local/cuda/bin/nvcc" ;



M:: macosx sign-factor-app ( -- )
{
"codesign"
"--force"
"--sign"
"Developer ID Application"
f
} "Factor.app/" make-factor-path suffix
short-running-process ;