]> gitweb.factorcode.org Git - factor.git/commitdiff
update unix, windows, and test deploy backends
authorJoe Groff <arcata@gmail.com>
Mon, 15 Feb 2010 07:10:05 +0000 (23:10 -0800)
committerJoe Groff <arcata@gmail.com>
Mon, 15 Feb 2010 07:10:05 +0000 (23:10 -0800)
basis/tools/deploy/test/test.factor
basis/tools/deploy/unix/unix.factor
basis/tools/deploy/windows/windows.factor

index d8414baba7842956137e5ced29db9987e87b3c10..bc458dde3629789ee36b371521ac4cb75fa4b088 100644 (file)
@@ -7,7 +7,7 @@ IN: tools.deploy.test
     [ "test.image" temp-file delete-file ] ignore-errors
     "resource:" [
         [ vm "test.image" temp-file ] dip
-        dup deploy-config make-deploy-image
+        dup deploy-config make-deploy-image drop
     ] with-directory ;
 
 ERROR: image-too-big actual-size max-size ;
index f88cf06ef7fc8f48127b4e7875bfdad2f259c52a..2646f2d5a490f6d1451e1e6ed1db37efd56d6a69 100644 (file)
@@ -7,7 +7,6 @@ tools.deploy.config.editor assocs hashtables prettyprint ;
 IN: tools.deploy.unix
 
 : create-app-dir ( vocab bundle-name -- vm )
-    dup "" copy-theme
     copy-vm
     dup OCT: 755 set-file-permissions ;
 
@@ -20,6 +19,7 @@ M: unix deploy* ( vocab -- )
             [ bundle-name create-app-dir ] keep
             [ bundle-name image-name ] keep
             namespace make-deploy-image
+            bundle-name "" copy-resources
             bundle-name normalize-path [ "Binary deployed to " % % "." % ] "" make print
         ] bind
-    ] with-directory ;
\ No newline at end of file
+    ] with-directory ;
index f21f4ac363a83c3efc9a25f4a332e872ee8b2ab7..4dad8751282bd2481bd70a5ca5fff73bdb9eb46e 100644 (file)
@@ -16,20 +16,18 @@ IN: tools.deploy.windows
 
 : create-exe-dir ( vocab bundle-name -- vm )
     dup copy-dll
-    deploy-ui? get [
-        [ "" copy-theme ] [ ".exe" copy-vm ] bi
-    ] [ ".com" copy-vm ] if ;
+    deploy-ui? get ".exe" ".com" ? copy-vm ;
 
 M: winnt deploy*
     "resource:" [
         dup deploy-config [
             deploy-name get
-            [
+            {
                 [ create-exe-dir ]
                 [ image-name ]
-                [ drop ]
-                2tri namespace make-deploy-image
-            ]
-            [ nip open-in-explorer ] 2bi
+                [ drop namespace make-deploy-image ]
+                [ nip "" copy-resources ]
+                [ nip open-in-explorer ]
+            } 2cleave 
         ] bind
     ] with-directory ;