Skip to content
Permalink
Browse files

Fix comment setting when Python errors due to build version mismatche…

…s on manual builds
  • Loading branch information...
rowanbeentje committed May 25, 2015
1 parent 47506fb commit f94aeb596a00c455063993dceacba308723bf7da
Showing with 4 additions and 2 deletions.
  1. +4 −2 Scripts/build.sh
@@ -126,9 +126,11 @@ mkdir -p "${SHARED_SUPPORT_DIR}/Default Themes"

cp -R "${SRCROOT}/SharedSupport/Default Themes" "${SHARED_SUPPORT_DIR}"

# Add a SpotLight comment (can't use applescript from a continuous integration server, so we manually set the binaryplist with xattr)
# osascript -e "tell application \"Finder\" to set comment of (alias (POSIX file \"${BUILD_PRODUCT}\")) to \"MySQL database pancakes with syrup\""
# Add a SpotLight comment (can't use applescript from a continuous integration server, so we manually set the binaryplist with xattr - but if this fails fall back to applescript)
xattr -wx com.apple.metadata:kMDItemFinderComment "62 70 6C 69 73 74 30 30 5F 10 22 4D 79 53 51 4C 20 64 61 74 61 62 61 73 65 20 70 61 6E 63 61 6B 65 73 20 77 69 74 68 20 73 79 72 75 70 08 00 00 00 00 00 00 01 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2D" "${BUILD_PRODUCT}"
if [ $? -ne 0 ] ; then
osascript -e "tell application \"Finder\" to set comment of (alias (POSIX file \"${BUILD_PRODUCT}\")) to \"MySQL database pancakes with syrup\""
fi


FRAMEWORKS_LIST="/tmp/sp.frameworks.$$"

0 comments on commit f94aeb5

Please sign in to comment.
You can’t perform that action at this time.