use OS symbol in deploy
parent
83d9b936b2
commit
72c06fc028
|
@ -107,6 +107,4 @@ DEFER: ?make-staging-image
|
||||||
make-boot-image
|
make-boot-image
|
||||||
deploy-command-line run-factor ;
|
deploy-command-line run-factor ;
|
||||||
|
|
||||||
SYMBOL: deploy-implementation
|
HOOK: deploy* os ( vocab -- )
|
||||||
|
|
||||||
HOOK: deploy* deploy-implementation ( vocab -- )
|
|
||||||
|
|
|
@ -50,17 +50,13 @@ IN: tools.deploy.macosx
|
||||||
: bundle-name ( -- string )
|
: bundle-name ( -- string )
|
||||||
deploy-name get ".app" append ;
|
deploy-name get ".app" append ;
|
||||||
|
|
||||||
TUPLE: macosx-deploy-implementation ;
|
|
||||||
|
|
||||||
T{ macosx-deploy-implementation } deploy-implementation set-global
|
|
||||||
|
|
||||||
: show-in-finder ( path -- )
|
: show-in-finder ( path -- )
|
||||||
NSWorkspace
|
NSWorkspace
|
||||||
-> sharedWorkspace
|
-> sharedWorkspace
|
||||||
over <NSString> rot parent-directory <NSString>
|
over <NSString> rot parent-directory <NSString>
|
||||||
-> selectFile:inFileViewerRootedAtPath: drop ;
|
-> selectFile:inFileViewerRootedAtPath: drop ;
|
||||||
|
|
||||||
M: macosx-deploy-implementation deploy* ( vocab -- )
|
M: macosx deploy* ( vocab -- )
|
||||||
".app deploy tool" assert.app
|
".app deploy tool" assert.app
|
||||||
"resource:" [
|
"resource:" [
|
||||||
dup deploy-config [
|
dup deploy-config [
|
||||||
|
|
|
@ -25,11 +25,7 @@ IN: tools.deploy.windows
|
||||||
: image-name ( vocab bundle-name -- str )
|
: image-name ( vocab bundle-name -- str )
|
||||||
prepend-path ".image" append ;
|
prepend-path ".image" append ;
|
||||||
|
|
||||||
TUPLE: windows-deploy-implementation ;
|
M: winnt deploy*
|
||||||
|
|
||||||
T{ windows-deploy-implementation } deploy-implementation set-global
|
|
||||||
|
|
||||||
M: windows-deploy-implementation deploy*
|
|
||||||
"." resource-path [
|
"." resource-path [
|
||||||
dup deploy-config [
|
dup deploy-config [
|
||||||
[ deploy-name get create-exe-dir ] keep
|
[ deploy-name get create-exe-dir ] keep
|
||||||
|
|
Loading…
Reference in New Issue