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.
db4
Joe Groff 2011-11-21 15:31:12 -08:00
parent 1d9838aa57
commit 46c1cde14c
1 changed files with 5 additions and 2 deletions

View File

@ -70,13 +70,16 @@ IN: tools.deploy.macosx
[ normalize-path [ <NSString> ] [ parent-directory <NSString> ] 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