From: Rudolf Polzer Date: Wed, 11 Aug 2010 04:41:59 +0000 (+0200) Subject: rebranding: skip OSX icon if there is no Resources dir X-Git-Tag: xonotic-v0.1.0preview~309 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=12caa26f83138bd27ab18705edc1ef269a0de244 rebranding: skip OSX icon if there is no Resources dir --- 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"