factor/basis/tools/deploy/deploy-docs.factor

30 lines
1.8 KiB
Factor
Raw Normal View History

2007-09-20 18:09:08 -04:00
USING: help.markup help.syntax words alien.c-types assocs
kernel ;
IN: tools.deploy
2007-11-05 01:23:48 -05:00
ARTICLE: "tools.deploy" "Application deployment"
"The stand-alone application deployment tool compiles a vocabulary down to a native executable which runs the vocabulary's " { $link POSTPONE: MAIN: } " hook. Deployed executables do not depend on Factor being installed, and do not expose any source code, and thus are suitable for delivering commercial end-user applications."
2007-09-20 18:09:08 -04:00
$nl
"For example, we can deploy the " { $vocab-link "hello-world" } " demo which comes with Factor:"
2007-11-05 01:23:48 -05:00
{ $code "\"hello-ui\" deploy" }
2008-04-11 18:08:25 -04:00
{ $list
{ "On Mac OS X, this yields a program named " { $snippet "Hello world.app" } "." }
{ "On Windows, it yields a directory named " { $snippet "Hello world" } " containing a program named " { $snippet "hello-ui.exe" } "." }
{ "On Unix-like systems (Linux, BSD, Solaris, etc), it yields a directory named " { $snippet "Hello world" } " containing a program named " { $snippet "hello-ui" } "." }
2008-04-11 18:08:25 -04:00
}
"In all cases, running the program displays a window with a message."
2007-11-05 01:23:48 -05:00
$nl
"The deployment tool works by bootstrapping a fresh image, loading the vocabulary into this image, then applying various heuristics to strip the image down to minimal size."
$nl
"You must explicitly specify major subsystems which are required, as well as the level of reflection support needed. This is done by modifying the deployment configuration prior to deployment."
{ $subsection "prepare-deploy" }
"Once the necessary deployment flags have been set, the application can be deployed:"
{ $subsection deploy }
{ $see-also "ui.tools.deploy" } ;
2007-09-20 18:09:08 -04:00
ABOUT: "tools.deploy"
HELP: deploy
{ $values { "vocab" "a vocabulary specifier" } }
{ $description "Deploys " { $snippet "vocab" } ", saving the deployed image as " { $snippet { $emphasis "vocab" } ".image" } "." } ;