1 ! Copyright (C) 2008 James Cash
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: io io.backend io.directories io.files.info.unix kernel
4 namespaces sequences system tools.deploy.backend
5 tools.deploy.config tools.deploy.config.editor ;
8 : create-app-dir ( vocab bundle-name -- vm )
10 dup OCT: 755 set-file-permissions ;
12 : bundle-name ( -- str )
15 M: unix deploy* ( vocab -- )
18 [ bundle-name create-app-dir ] keep
19 [ bundle-name image-name ] keep
20 namespace make-deploy-image
21 bundle-name "" [ copy-resources ] [ copy-libraries ] 3bi
22 bundle-name normalize-path "Binary deployed to " "." surround print