Skip to content

Commit

Permalink
fix launcher creation for gracket[-text] on Mac OS
Browse files Browse the repository at this point in the history
The repair in 71a43f3 fixed the creation of some launchers, but it
broke GUI launchers with a relative reference on Mac OS.
  • Loading branch information
mflatt committed Apr 16, 2017
1 parent 47a2d4a commit 803d8ff
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions racket/collects/launcher/launcher.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,10 @@
(if (eq? kind 'mred)
(find-gui-bin-dir)
(find-console-bin-dir)))]
[as-relative? (let ([a (assq 'relative? aux)])
(and a (cdr a)))]
[dir-finder
(if (let ([a (assq 'relative? aux)])
(and a (cdr a)))
(if as-relative?
(make-relative-path-header dest bindir use-librktdir?)
(make-absolute-path-header bindir))]
[exec (format
Expand Down Expand Up @@ -470,7 +471,11 @@
(when use-librktdir?
(display "# {{{ librktdir\n")
(display "librktdir=\"$bindir/")
(display (find-relative-path bindir
(display (find-relative-path (if as-relative?
(simplify-path
(let-values ([(base name dir?) (split-path (path->complete-path dest))])
base))
bindir)
(simplify-path
(find-lib-dir))))
(display "\"\n")
Expand Down

0 comments on commit 803d8ff

Please sign in to comment.