CI: Fix Mac builds on Travis CI's Xcode 8.3 image
The Travis CI Xcode 8.3 image uses macOS 10.12, where some changes were made to productsign, and Apple's documentation didn't clearly reflect this. This commit should fix Mac builds on Travis for Xcode 8.3 and clean up the job log.
This commit is contained in:
parent
7d2cda57bb
commit
af62c3648e
@ -48,7 +48,7 @@ security set-keychain-settings -t 3600 -u build.keychain
|
||||
hr "Importing certs into keychain"
|
||||
security import ./Certificates.p12 -k build.keychain -T /usr/bin/productsign -P ""
|
||||
hr "Signing Package"
|
||||
productsign --sign 'Developer ID Installer: Hugh Bailey (2MMRE5MTB8)' ./OBS.pkg ./$FILENAME
|
||||
productsign --sign 2MMRE5MTB8 ./OBS.pkg ./$FILENAME
|
||||
|
||||
# Move to the folder that travis uses to upload artifacts from
|
||||
hr "Moving package to nightly folder for distribution"
|
||||
|
@ -86,7 +86,7 @@ for i in candidate_paths:
|
||||
try:
|
||||
out = check_output("{0}otool -L '{1}'".format(args.prefix, path), shell=True,
|
||||
universal_newlines=True)
|
||||
if "is not an object file" in out:
|
||||
if "The file was not recognized as a valid object file" in out:
|
||||
continue
|
||||
except:
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user