From ef00c05222a7a3352aed86342b0efec2dc5ec91e Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Fri, 21 Dec 2012 20:54:17 +0000 Subject: - Remove outdated language resources from the project - Add a copy phase to the distribution build process to copy in languages downloaded from dev.sequelpro.com/languages before signing --- Scripts/build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Scripts') diff --git a/Scripts/build.sh b/Scripts/build.sh index 01c9b683..09bd09f6 100755 --- a/Scripts/build.sh +++ b/Scripts/build.sh @@ -84,6 +84,15 @@ cp -R "${SRCROOT}/SharedSupport/Default Themes" "${BUILD_PRODUCT}/Contents/Share # Perform distribution specific tasks if this is a 'Distribution' build if [ "$CONFIGURATION" == 'Distribution' ] then + + echo 'Checking for localizations to copy in, using the "ResourcesToCopy" directory...' + if [ -e "${SRCROOT}/ResourcesToCopy" ] + then + find "${SRCROOT}/ResourcesToCopy" \( -name "*.lproj" \) | while read FILE; do; printf "\tCopying localization: ${FILE}\n"; cp -R "$FILE" "${BUILD_PRODUCT}/Contents/Resources/"; done; + else + echo 'No localizations to copy.' + fi + echo 'Performing distribution build code signing...' codesign -s 'Developer ID Application: MJ Media' -r "${SRCROOT}/Resources/sprequirement.bin" "${BUILD_PRODUCT}/Contents/Resources/SequelProTunnelAssistant" -- cgit v1.2.3