make-darwin-bundle: Escape outputBin for Nix '' string
This commit is contained in:
parent
a8d7ac1b11
commit
4c14b9a778
1 changed files with 6 additions and 4 deletions
|
@ -12,14 +12,16 @@
|
|||
|
||||
writeShellScript "make-darwin-bundle-${name}" (''
|
||||
function makeDarwinBundlePhase() {
|
||||
mkdir -p "${!outputBin}/Applications/${name}.app/Contents/MacOS"
|
||||
mkdir -p "${!outputBin}/Applications/${name}.app/Contents/Resources"
|
||||
mkdir -p "''${!outputBin}/Applications/${name}.app/Contents/MacOS"
|
||||
mkdir -p "''${!outputBin}/Applications/${name}.app/Contents/Resources"
|
||||
|
||||
if [ -n "${icon}" ]; then
|
||||
ln -s "${icon}" "${!outputBin}/Applications/${name}.app/Contents/Resources"
|
||||
ln -s "${icon}" \
|
||||
"''${!outputBin}/Applications/${name}.app/Contents/Resources"
|
||||
fi
|
||||
|
||||
${writeDarwinBundle}/bin/write-darwin-bundle "${!outputBin}" "${name}" "${exec}"
|
||||
${writeDarwinBundle}/bin/write-darwin-bundle "''${!outputBin}" "${name}" \
|
||||
"${exec}"
|
||||
}
|
||||
|
||||
preDistPhases+=" makeDarwinBundlePhase"
|
||||
|
|
Loading…
Reference in a new issue