Adding deployment for Linux

db4
James Cash 2008-04-11 14:28:28 -04:00
parent 783d0d613d
commit 361361a556
4 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1 @@
James Cash

View File

@ -0,0 +1,31 @@
USING: io io.files io.backend kernel namespaces sequences
system tools.deploy.backend tools.deploy.config assocs
hashtables prettyprint ;
IN: tools.deploy.linux
: copy-vm ( executable bundle-name -- vm )
prepend-path "" append
vm over copy-file ;
: copy-fonts ( name -- )
"fonts/" resource-path swap copy-tree-into ;
: create-app-dir ( vocab bundle-name -- vm )
dup copy-fonts
copy-vm ;
: image-name ( vocab bundle-name -- str )
prepend-path ".image" append ;
: bundle-name ( -- str )
deploy-name get ;
M: linux deploy* ( vocab -- )
"." resource-path [
dup deploy-config [
[ bundle-name create-app-dir ] keep
[ bundle-name image-name ] keep
namespace make-deploy-image
bundle-name normalize-path [ "Binary deployed to " % % "." % ] "" make write
] bind
] with-directory ;

View File

@ -0,0 +1 @@
Deploying minimal stand-alone Linux binaries

View File

@ -0,0 +1 @@
tools