mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Merge pull request #1160 from ksuther/shell-script-fixes
Shell script fixes
This commit is contained in:
2 files changed
+4
-4
No files matched your search
@@ -1,8 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
AGENT_PATH="${TARGET_BUILD_DIR}"/"${CONTENTS_FOLDER_PATH}"/"MacOS/${SPARKLE_INSTALLER_PROGRESS_TOOL_NAME}.app"
|
||||
AGENT_PATH="${TARGET_BUILD_DIR}"/"${CONTENTS_FOLDER_PATH}"/MacOS/"${SPARKLE_INSTALLER_PROGRESS_TOOL_NAME}".app
|
||||
|
||||
#Only sign the agent app if we have code signing enabled (as we do with adhoc signatures in Debug builds for testing sandboxing)
|
||||
if ! [ -z ${CODE_SIGN_IDENTITY}] ; then
|
||||
if [ ! -z "${CODE_SIGN_IDENTITY}" -a "${CODE_SIGN_IDENTITY}" != "-" ] ; then
|
||||
codesign --verbose -f -s "${CODE_SIGN_IDENTITY}" "${AGENT_PATH}"
|
||||
fi
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
# We should make sure ATS is off for the test app
|
||||
|
||||
DOWNLOADER_INFO_PLIST="${TARGET_BUILD_DIR}"/"${CONTENTS_FOLDER_PATH}"/"XPCServices"/"${DOWNLOADER_BUNDLE_ID}.xpc"/"Contents"/"Info.plist"
|
||||
DOWNLOADER_INFO_PLIST="${TARGET_BUILD_DIR}"/"${CONTENTS_FOLDER_PATH}"/XPCServices/"${DOWNLOADER_BUNDLE_ID}".xpc/Contents/Info.plist
|
||||
|
||||
#Only alter bundles if code signing is off, else we'll invalidate the signature on them
|
||||
#If code signing is enabled (as in debug mode), then we rely on another script for turning ATS exceptions on for these services
|
||||
#In release mode however, those services do not have ATS exceptions set up which is why we have to set up exceptions *here*
|
||||
if [ -z ${CODE_SIGN_IDENTITY}] ; then
|
||||
if [ -z "${CODE_SIGN_IDENTITY}" -o "${CODE_SIGN_IDENTITY}" == "-" ] ; then
|
||||
/usr/libexec/PlistBuddy -c "Set :NSAppTransportSecurity:NSAllowsArbitraryLoads YES" "${DOWNLOADER_INFO_PLIST}"
|
||||
fi
|
||||
Reference in new issue
Block a user