: copy-bundle-dir ( bundle-name dir -- )
[ bundle-dir prepend-path swap ] keep
- "Contents" prepend-path append-path copy-tree ;
+ append-path copy-tree ;
: app-plist ( icon? executable bundle-name -- assoc )
[
: copy-nib ( bundle-name -- )
deploy-ui? get [
- "Resources/English.lproj/MiniFactor.nib" copy-bundle-dir
+ "Contents/Resources/English.lproj/MiniFactor.nib" copy-bundle-dir
] [ drop ] if ;
: copy-icns ( vocab bundle-name -- icon? )
[ create-app-plist ]
[ "Contents/MacOS/" append-path copy-vm ]
} 2cleave
- dup OCT: 755 set-file-permissions ;
+ dup 0o755 set-file-permissions ;
: deploy.app-image ( vocab bundle-name -- str )
[ % "/Contents/Resources/" % % ".image" % ] "" make ;