mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure the bundle identifier matches what's in Info.plist.
This commit is contained in:
parent
921c0ac71a
commit
7dc6181d1e
@ -267,10 +267,6 @@ _codesign_binaries() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${DEVELOPER_BUNDLE_ID}" ]; then
|
|
||||||
echo "Developer Bundle Identifier not found in codesign.conf" >&2
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Create the entitlements file
|
# Create the entitlements file
|
||||||
cp "${SCRIPT_DIR}/entitlements.plist.in" "${BUILD_ROOT}/entitlements.plist"
|
cp "${SCRIPT_DIR}/entitlements.plist.in" "${BUILD_ROOT}/entitlements.plist"
|
||||||
TEAM_ID=$(echo ${DEVELOPER_ID} | awk -F"[()]" '{print $2}')
|
TEAM_ID=$(echo ${DEVELOPER_ID} | awk -F"[()]" '{print $2}')
|
||||||
@ -280,13 +276,13 @@ _codesign_binaries() {
|
|||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
for i in $(find "${BUNDLE_DIR}" -type f -perm +111 -exec file "{}" \; | grep -v "(for architecture" | grep -E "Mach-O executable|Mach-O 64-bit executable|Mach-O 64-bit bundle" | awk -F":" '{print $1}' | uniq)
|
for i in $(find "${BUNDLE_DIR}" -type f -perm +111 -exec file "{}" \; | grep -v "(for architecture" | grep -E "Mach-O executable|Mach-O 64-bit executable|Mach-O 64-bit bundle" | awk -F":" '{print $1}' | uniq)
|
||||||
do
|
do
|
||||||
codesign --deep --force --verify --verbose --timestamp --options runtime --entitlements "${BUILD_ROOT}/entitlements.plist" -i "${DEVELOPER_BUNDLE_ID}" --sign "${DEVELOPER_ID}" "$i"
|
codesign --deep --force --verify --verbose --timestamp --options runtime --entitlements "${BUILD_ROOT}/entitlements.plist" -i org.pgadmin.pgadmin4 --sign "${DEVELOPER_ID}" "$i"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo Signing ${BUNDLE_DIR} libraries...
|
echo Signing ${BUNDLE_DIR} libraries...
|
||||||
for i in $(find "${BUNDLE_DIR}" -type f -name "*.dylib*")
|
for i in $(find "${BUNDLE_DIR}" -type f -name "*.dylib*")
|
||||||
do
|
do
|
||||||
codesign --deep --force --verify --verbose --timestamp --options runtime --entitlements "${BUILD_ROOT}/entitlements.plist" -i "${DEVELOPER_BUNDLE_ID}" --sign "${DEVELOPER_ID}" "$i"
|
codesign --deep --force --verify --verbose --timestamp --options runtime --entitlements "${BUILD_ROOT}/entitlements.plist" -i org.pgadmin.pgadmin4 --sign "${DEVELOPER_ID}" "$i"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -297,7 +293,7 @@ _codesign_bundle() {
|
|||||||
|
|
||||||
# Sign the .app
|
# Sign the .app
|
||||||
echo Signing ${BUNDLE_DIR}...
|
echo Signing ${BUNDLE_DIR}...
|
||||||
codesign --deep --force --verify --verbose --timestamp --options runtime --entitlements "${BUILD_ROOT}/entitlements.plist" -i "${DEVELOPER_BUNDLE_ID}" --sign "${DEVELOPER_ID}" "${BUNDLE_DIR}"
|
codesign --deep --force --verify --verbose --timestamp --options runtime --entitlements "${BUILD_ROOT}/entitlements.plist" -i org.pgadmin.pgadmin4 --sign "${DEVELOPER_ID}" "${BUNDLE_DIR}"
|
||||||
}
|
}
|
||||||
|
|
||||||
_create_dmg() {
|
_create_dmg() {
|
||||||
@ -332,5 +328,5 @@ _codesign_dmg() {
|
|||||||
|
|
||||||
# Sign the .app
|
# Sign the .app
|
||||||
echo Signing disk image...
|
echo Signing disk image...
|
||||||
codesign --force --verify --verbose --timestamp --options runtime -i "${DEVELOPER_BUNDLE_ID}" --sign "${DEVELOPER_ID}" "${DIST_ROOT}/$(echo ${APP_NAME} | sed 's/ //g' | awk '{print tolower($0)}')-${APP_LONG_VERSION}.dmg"
|
codesign --force --verify --verbose --timestamp --options runtime -i org.pgadmin.pgadmin4 --sign "${DEVELOPER_ID}" "${DIST_ROOT}/$(echo ${APP_NAME} | sed 's/ //g' | awk '{print tolower($0)}')-${APP_LONG_VERSION}.dmg"
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,4 @@
|
|||||||
# codesign.conf, and edit the values below to reflect your developer ID.
|
# codesign.conf, and edit the values below to reflect your developer ID.
|
||||||
|
|
||||||
DEVELOPER_ID="Developer ID Application: My Name (12345ABCD)"
|
DEVELOPER_ID="Developer ID Application: My Name (12345ABCD)"
|
||||||
DEVELOPER_BUNDLE_ID="Developer Bundle Identifier (pgadmin4-4)"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user