make-darwin-bundle: Escape outputBin for Nix '' string

This commit is contained in:
toonn 2022-03-11 19:23:33 +01:00
parent a8d7ac1b11
commit 4c14b9a778
No known key found for this signature in database
GPG key ID: 44FF902A66DF4576

View file

@ -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"