1 ! Copyright (C) 2007, 2008 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: io io.files kernel namespaces sequences system
4 tools.deploy.backend tools.deploy.config
5 tools.deploy.config.editor assocs hashtables prettyprint
6 combinators windows.shell32 windows.user32 ;
7 IN: tools.deploy.windows
9 : copy-dll ( bundle-name -- )
10 "resource:factor.dll" swap copy-file-into ;
12 : copy-freetype ( bundle-name -- )
14 "resource:freetype6.dll"
16 } swap copy-files-into ;
18 : create-exe-dir ( vocab bundle-name -- vm )
34 2tri namespace make-deploy-image
36 [ nip open-in-explorer ] 2bi