Merge pull request #165111 from toonn/darwin-bundle-outputBin
make-darwin-bundle: Use output bin
This commit is contained in:
commit
1468e8f52d
2 changed files with 8 additions and 8 deletions
|
@ -12,14 +12,14 @@
|
|||
|
||||
writeShellScript "make-darwin-bundle-${name}" (''
|
||||
function makeDarwinBundlePhase() {
|
||||
mkdir -p "$out/Applications/${name}.app/Contents/MacOS"
|
||||
mkdir -p "$out/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}" "$out/Applications/${name}.app/Contents/Resources"
|
||||
ln -s "${icon}" "''${!outputBin}/Applications/${name}.app/Contents/Resources"
|
||||
fi
|
||||
|
||||
${writeDarwinBundle}/bin/write-darwin-bundle "$out" "${name}" "${exec}"
|
||||
${writeDarwinBundle}/bin/write-darwin-bundle "''${!outputBin}" "${name}" "${exec}"
|
||||
}
|
||||
|
||||
preDistPhases+=" makeDarwinBundlePhase"
|
||||
|
|
|
@ -200,12 +200,12 @@ convertDesktopFile() {
|
|||
local -r iconName=$(getDesktopParam "${file}" "^Icon")
|
||||
local -r squircle=$(getDesktopParam "${file}" "X-macOS-SquircleIcon")
|
||||
|
||||
mkdir -p "$out/Applications/${name}.app/Contents/MacOS"
|
||||
mkdir -p "$out/Applications/${name}.app/Contents/Resources"
|
||||
mkdir -p "${!outputBin}/Applications/${name}.app/Contents/MacOS"
|
||||
mkdir -p "${!outputBin}/Applications/${name}.app/Contents/Resources"
|
||||
|
||||
convertIconTheme "$out/Applications/${name}.app/Contents/Resources" "$sharePath" "$iconName"
|
||||
convertIconTheme "${!outputBin}/Applications/${name}.app/Contents/Resources" "$sharePath" "$iconName"
|
||||
|
||||
write-darwin-bundle "$out" "$name" "$exec" "$iconName" "$squircle"
|
||||
write-darwin-bundle "${!outputBin}" "$name" "$exec" "$iconName" "$squircle"
|
||||
}
|
||||
|
||||
convertDesktopFiles() {
|
||||
|
|
Loading…
Reference in a new issue