From 46c1cde14cd02c032e61e9feffe1b185cc019de3 Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Mon, 21 Nov 2011 15:31:12 -0800 Subject: [PATCH] tools.deploy.macosx: deploy separate VM and image This is the easiest way to make sure "resource:" works with deployed bundles for now. Single-file executables aren't really an issue with app bundles anyway. --- basis/tools/deploy/macosx/macosx.factor | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/basis/tools/deploy/macosx/macosx.factor b/basis/tools/deploy/macosx/macosx.factor index 220bd86d1e..4a132ed999 100644 --- a/basis/tools/deploy/macosx/macosx.factor +++ b/basis/tools/deploy/macosx/macosx.factor @@ -70,13 +70,16 @@ IN: tools.deploy.macosx [ normalize-path [ ] [ parent-directory ] bi ] bi* -> selectFile:inFileViewerRootedAtPath: drop ; +: deploy.app-image-name ( vocab bundle-name -- str ) + [ % "/Contents/Resources/" % % ".image" % ] "" make ; + : deploy-app-bundle ( vocab -- ) "resource:" [ dup deploy-config [ bundle-name dup exists? [ delete-tree ] [ drop ] if [ bundle-name create-app-dir ] keep - [ deployed-image-name ] keep - namespace make-deploy-image-executable + [ bundle-name deploy.app-image-name ] keep + namespace make-deploy-image bundle-name [ "Contents/Resources" copy-resources ] [ "Contents/Frameworks" copy-libraries ] 2bi