raco exe on Mac OS: ensure that "PkgInfo" is writable
Relevant to #1680
This commit is contained in:
parent
f27be30c15
commit
7f1ab90806
|
@ -271,12 +271,13 @@
|
|||
#:exists 'truncate
|
||||
(lambda (port)
|
||||
(write-plist new-plist port)))))
|
||||
(call-with-output-file (build-path dest
|
||||
"Contents"
|
||||
"PkgInfo")
|
||||
#:exists 'truncate
|
||||
(lambda (port)
|
||||
(fprintf port "APPL~a" creator)))
|
||||
(let* ([pkginfo-path (build-path dest "Contents" "PkgInfo")]
|
||||
[old-perms (ensure-writable pkginfo-path)])
|
||||
(call-with-output-file pkginfo-path
|
||||
#:exists 'truncate
|
||||
(lambda (port)
|
||||
(fprintf port "APPL~a" creator)))
|
||||
(done-writable pkginfo-path old-perms))
|
||||
(when resource-files
|
||||
(for-each (lambda (p)
|
||||
(let-values ([(base name dir?) (split-path p)])
|
||||
|
|
Loading…
Reference in New Issue
Block a user