mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix hard notarisation failures.
This commit is contained in:
parent
49c614160d
commit
917d08c61e
@ -152,6 +152,10 @@ _build_runtime() {
|
|||||||
make clean
|
make clean
|
||||||
${QMAKE} || { echo qmake failed; exit 1; }
|
${QMAKE} || { echo qmake failed; exit 1; }
|
||||||
make || { echo make failed; exit 1; }
|
make || { echo make failed; exit 1; }
|
||||||
|
# Hack to pass notarization due to name change between app and binary
|
||||||
|
if [ -f pgAdmin4.app/Contents/MacOS/pgAdmin4 ]; then
|
||||||
|
mv pgAdmin4.app/Contents/MacOS/pgAdmin4 "pgAdmin4.app/Contents/MacOS/${APP_NAME}"
|
||||||
|
fi
|
||||||
cp -r pgAdmin4.app "${BUILDROOT}/${APP_BUNDLE_NAME}"
|
cp -r pgAdmin4.app "${BUILDROOT}/${APP_BUNDLE_NAME}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,13 +25,13 @@ for i in $(find "${BUNDLE}" -type f)
|
|||||||
do
|
do
|
||||||
file "${i}" | grep -E "Mach-O executable|Mach-O 64-bit executable|Mach-O 64-bit bundle"
|
file "${i}" | grep -E "Mach-O executable|Mach-O 64-bit executable|Mach-O 64-bit bundle"
|
||||||
if [ $? -eq 0 ] ; then
|
if [ $? -eq 0 ] ; then
|
||||||
codesign --deep -f -i "${DEVELOPER_BUNDLE_ID}" -s "${DEVELOPER_ID}" --options runtime ${i}
|
codesign --deep --verify --verbose --timestamp --options runtime -i "${DEVELOPER_BUNDLE_ID" --sign "${DEVELOPER_ID}" "$"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo Signing ${BUNDLE} libraries
|
echo Signing ${BUNDLE} libraries
|
||||||
for i in $(find "${BUNDLE}" -type f -name "*.dylib*")
|
for i in $(find "${BUNDLE}" -type f -name "*.dylib*")
|
||||||
do
|
do
|
||||||
codesign --deep -f -i "${DEVELOPER_BUNDLE_ID}" -s "${DEVELOPER_ID}" --options runtime ${i}
|
codesign --deep --verify --verbose --timestamp --options runtime -i "${DEVELOPER_BUNDLE_ID" --sign "${DEVELOPER_ID}" "$"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ source codesign.conf
|
|||||||
|
|
||||||
# Sign the .app
|
# Sign the .app
|
||||||
echo Signing ${BUNDLE}
|
echo Signing ${BUNDLE}
|
||||||
codesign --sign "${DEVELOPER_ID}" --verbose --deep --force "${BUNDLE}"
|
codesign --sign "${DEVELOPER_ID}" --timestamp --verbose --deep --force "${BUNDLE}"
|
||||||
|
|
||||||
# Verify it worked
|
# Verify it worked
|
||||||
echo Verifying the signature
|
echo Verifying the signature
|
||||||
|
@ -16,7 +16,7 @@ SCRIPT_DIR=`pwd`
|
|||||||
|
|
||||||
# Sign the .app
|
# Sign the .app
|
||||||
echo Signing ${DMG_IMAGE}
|
echo Signing ${DMG_IMAGE}
|
||||||
codesign --sign "${DEVELOPER_ID}" --verbose --force "${DMG_IMAGE}"
|
codesign --sign "${DEVELOPER_ID}" --timestamp --verbose --force "${DMG_IMAGE}"
|
||||||
|
|
||||||
# Verify it worked
|
# Verify it worked
|
||||||
echo Verifying the signature
|
echo Verifying the signature
|
||||||
@ -27,4 +27,4 @@ if [ ${RETURN_STATUS} -ne 0 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo ${DMG_IMAGE} successfully signed
|
echo ${DMG_IMAGE} successfully signed
|
||||||
fi
|
fi
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>English</string>
|
<string>English</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>pgAdmin4</string>
|
<string>pgAdmin 4</string>
|
||||||
<key>CFBundleGetInfoString</key>
|
<key>CFBundleGetInfoString</key>
|
||||||
<string>pgAdmin4 PGADMIN_LONG_VERSION</string>
|
<string>pgAdmin4 PGADMIN_LONG_VERSION</string>
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
|
Loading…
Reference in New Issue
Block a user