Minor fixes to the Mac appbundle build

This commit is contained in:
Justin Clift 2016-10-04 13:51:28 +01:00 committed by Dave Page
parent 6458e4cafb
commit 3e743ad582
3 changed files with 4 additions and 3 deletions

View File

@ -162,8 +162,7 @@ _complete_bundle() {
# Remove the .pyc files if any
cd "$BUILDROOT/$APP_BUNDLE_NAME"
find . -name *.pyc | xargs rm -f
find . -name *.pyc | xargs rm -f
}
_codesign_bundle() {

View File

@ -56,7 +56,7 @@ find "${BUNDLE}/Contents/Frameworks" -type d -name "P*framework" | while read -r
# Create soft link to the framework Resources dir
ln -s Versions/Current/Resources
# Create the Info.plist files
# Create the Info.plist file
MYNAME=`ls -1 Py*`
sed 's/__SHORT_VERSION__/${PYTHON_SHORT_VERSION}/' "${SCRIPT_DIR}/Info.plist-template_Python" | sed 's/__FULL_VERSION__/${PYTHON_FULL_VERSION}/' | sed "s/__FRAMEWORK_NAME__/${MYNAME}/" > "Resources/Info.plist"
@ -73,6 +73,7 @@ codesign --verify --verbose --deep --force "${BUNDLE}"
RETURN_STATUS=$?
if [ $RETURN_STATUS -ne 0 ]; then
echo Code signing did not work, check the log
exit 1
else
echo ${BUNDLE} successfully signed
fi

View File

@ -24,6 +24,7 @@ codesign --verify --verbose --force "${DMG_IMAGE}"
RETURN_STATUS=$?
if [ $RETURN_STATUS -ne 0 ]; then
echo ERROR: Code signing did not work
exit 1
else
echo ${DMG_IMAGE} successfully signed
fi