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
parent
1d9838aa57
commit
46c1cde14c
|
@ -70,13 +70,16 @@ IN: tools.deploy.macosx
|
||||||
[ normalize-path [ <NSString> ] [ parent-directory <NSString> ] bi ] bi*
|
[ normalize-path [ <NSString> ] [ parent-directory <NSString> ] bi ] bi*
|
||||||
-> selectFile:inFileViewerRootedAtPath: drop ;
|
-> selectFile:inFileViewerRootedAtPath: drop ;
|
||||||
|
|
||||||
|
: deploy.app-image-name ( vocab bundle-name -- str )
|
||||||
|
[ % "/Contents/Resources/" % % ".image" % ] "" make ;
|
||||||
|
|
||||||
: deploy-app-bundle ( vocab -- )
|
: deploy-app-bundle ( vocab -- )
|
||||||
"resource:" [
|
"resource:" [
|
||||||
dup deploy-config [
|
dup deploy-config [
|
||||||
bundle-name dup exists? [ delete-tree ] [ drop ] if
|
bundle-name dup exists? [ delete-tree ] [ drop ] if
|
||||||
[ bundle-name create-app-dir ] keep
|
[ bundle-name create-app-dir ] keep
|
||||||
[ deployed-image-name ] keep
|
[ bundle-name deploy.app-image-name ] keep
|
||||||
namespace make-deploy-image-executable
|
namespace make-deploy-image
|
||||||
bundle-name
|
bundle-name
|
||||||
[ "Contents/Resources" copy-resources ]
|
[ "Contents/Resources" copy-resources ]
|
||||||
[ "Contents/Frameworks" copy-libraries ] 2bi
|
[ "Contents/Frameworks" copy-libraries ] 2bi
|
||||||
|
|
Loading…
Reference in New Issue