Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clean up the signd function.

  • Loading branch information...
commit 32ab9ea6adf52adfb6ae1c35acfb0e43fedd74ee 1 parent d72f7ac
dak180 dak180 authored
Showing with 5 additions and 9 deletions.
  1. +5 −9 configs/scripts/Release-for-upload.sh
14 configs/scripts/Release-for-upload.sh
View
@@ -28,7 +28,7 @@ DOWNLOAD_BASE_URL="${DOWNLOAD_BASE_URL}/${DOWNLOAD_SUB_DIR}/${DOWNLOAD_TAG_DIR}"
# codesign setup
function signd {
- if [ ! -z "${CODE_SIGN_IDENTITY}" ]; then
+ if [[ ! -z "${CODE_SIGN_IDENTITY}" ]] && [[ ! -z ${CODE_SIGN_REQUIREMENTS_PATH} ]]; then
# Local Config
local appth="${1}"
local idetd="${CODE_SIGN_IDENTITY}"
@@ -36,14 +36,10 @@ function signd {
local csreq="${CODE_SIGN_REQUIREMENTS_PATH}"
# Sign and verify the app
- if [[ ! -z "${resrul}" ]] && [[ ! -z "${csreq}" ]]; then
- cp -a "${resrul}" "${appth}/ResourceRules.plist"
- codesign -f --sign "${idetd}" --resource-rules="${appth}/ResourceRules.plist" --requirements "${csreq}" -vvv "${appth}"
- rm "${appth}/ResourceRules.plist"
- else
- codesign -f --sign "${idetd}" --requirements "${csreq}" -vvv "${appth}"
- fi
- if ! codesign -vvv --verify "${appth}"; then
+ cp -a "${resrul}" "${appth}/ResourceRules.plist"
+ /usr/bin/codesign -f --sign "${idetd}" --resource-rules="${appth}/ResourceRules.plist" --requirements "${csreq}" -vvv "${appth}"
+ rm "${appth}/ResourceRules.plist"
+ if ! codesign --verify -vvv "${appth}"; then
echo "warning: Code is improperly signed!" 1>&2
fi
else
Please sign in to comment.
Something went wrong with that request. Please try again.