Skip to content

Commit

Permalink
tools.deploy.unix: make sure extension isn't appended to deploy-path …
Browse files Browse the repository at this point in the history
…on macos
  • Loading branch information
mrjbq7 committed Nov 18, 2024
1 parent 9a9697c commit a34c4f4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions basis/tools/deploy/unix/unix.factor
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ IN: tools.deploy.unix

CONSTANT: extension ".out"

: ?extension ( path -- path.out )
os macos? [ extension append ] unless ;

: create-app-dir ( vocab bundle-name -- vm-path )
[ os macos? [ extension append ] unless ] dip
copy-vm dup 0o755 set-file-permissions ;
[ ?extension ] dip copy-vm dup 0o755 set-file-permissions ;

M: unix deploy*
deploy-name get
Expand All @@ -26,7 +28,7 @@ M: unix deploy-path
deploy-directory get [
dup deploy-config [
deploy-name get
swap extension append append-path
swap ?extension append-path
normalize-path
] with-variables
] with-directory ;

0 comments on commit a34c4f4

Please sign in to comment.