Skip to content

Commit

Permalink
Fix code-signing when no dev certificate present
Browse files Browse the repository at this point in the history
Makes build to work when no internal developer certificate has been
created in XCode.
  • Loading branch information
adriansr committed May 30, 2018
1 parent 56e320e commit c2b485a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dev-tools/packer/platforms/darwin/preference-pane/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ VERSION?=1.0.0
default: build

build:
xcodebuild build -project $(PROJECT) -alltargets -configuration $(CONFIGURATION)
xcodebuild build -project $(PROJECT) -alltargets -configuration $(CONFIGURATION) CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
echo version="${VERSION}"
test -z '$(SIGN_IDENTITY_APP)' || \
test -n '$(SIGN_IDENTITY_APP)' && \
codesign -s '$(SIGN_IDENTITY_APP)' --force --keychain '$(KEYCHAIN)' --timestamp \
build/$(CONFIGURATION)/*.prefPane/Contents/MacOS/helper && \
codesign -s '$(SIGN_IDENTITY_APP)' --force --keychain '$(KEYCHAIN)' --timestamp \
build/$(CONFIGURATION)/*.prefPane

Expand Down

0 comments on commit c2b485a

Please sign in to comment.