diff options
author | rowanbeentje <rowan@beent.je> | 2012-12-21 20:54:17 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-12-21 20:54:17 +0000 |
commit | ef00c05222a7a3352aed86342b0efec2dc5ec91e (patch) | |
tree | d26c7941e5777ae312776fde97ff93d6fbde6f6b /Scripts/build.sh | |
parent | 4aaafb8ffb786e0730cf923d42d5b49ec0670e4b (diff) | |
download | sequelpro-ef00c05222a7a3352aed86342b0efec2dc5ec91e.tar.gz sequelpro-ef00c05222a7a3352aed86342b0efec2dc5ec91e.tar.bz2 sequelpro-ef00c05222a7a3352aed86342b0efec2dc5ec91e.zip |
- 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
Diffstat (limited to 'Scripts/build.sh')
-rwxr-xr-x | Scripts/build.sh | 9 |
1 files changed, 9 insertions, 0 deletions
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" |