From 12caa26f83138bd27ab18705edc1ef269a0de244 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 11 Aug 2010 06:41:59 +0200 Subject: [PATCH] rebranding: skip OSX icon if there is no Resources dir --- misc/tools/rebrand-darkplaces-engine.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/misc/tools/rebrand-darkplaces-engine.sh b/misc/tools/rebrand-darkplaces-engine.sh index 8403c990..8208d484 100755 --- a/misc/tools/rebrand-darkplaces-engine.sh +++ b/misc/tools/rebrand-darkplaces-engine.sh @@ -111,8 +111,9 @@ EOF pkgdir=.. ;; esac - cp "$icon_icns" "$pkgdir/Resources/Darkplaces.icns" - cat <"$pkgdir/Resources/English.lproj/InfoPlist.strings" + if [ -d "$pkgdir/Resources" ]; then + cp "$icon_icns" "$pkgdir/Resources/Darkplaces.icns" + cat <"$pkgdir/Resources/English.lproj/InfoPlist.strings" /* Localized versions of Info.plist keys */ CFBundleName = "$name"; @@ -120,6 +121,7 @@ CFBundleShortVersionString = "$name"; CFBundleGetInfoString = "Darkplaces by Forest 'LordHavoc' Hale"; NSHumanReadableCopyright = "Copyright `date +%Y`"; EOF + fi fi cat "$t/darkplaces-this.zip" >> "$EXECUTABLE" -- 2.39.2