Release/Makefile
branchadium-1.5.10.3
changeset 5973 495038a4da5d
parent 5951 971bc583acb4
child 5974 fa26ff639b88
equal deleted inserted replaced
5972:0ef4aed3d7b7 5973:495038a4da5d
    90 endif
    90 endif
    91 
    91 
    92 PLIST_DIR=`pwd`/../Plists
    92 PLIST_DIR=`pwd`/../Plists
    93 ADIUM_PLIST=$(PLIST_DIR)/Info
    93 ADIUM_PLIST=$(PLIST_DIR)/Info
    94 
    94 
       
    95 SIGNING_CERT_NAME="Developer ID Application: Instant Messaging Freedom, Inc."
       
    96 SIGNING_REQUIREMENTS="=designated => anchor apple generic and ((cert leaf[field.1.2.840.113635.100.6.1.9] exists) or ( certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU] = \"VQ6ZEL8UD3\" ))"
       
    97 
    95 ###########
    98 ###########
    96 # Targets
    99 # Targets
    97 ###########
   100 ###########
    98 .PHONY: all all-withlocalchanges all-withlocalchanges-noclean all-nopackage-noclean all-nightly update assertnochanges assertnoconflicts version compile clean release source prepare-release-bundle createfolder diskimage nightly tarball
   101 .PHONY: all all-withlocalchanges all-withlocalchanges-noclean all-nopackage-noclean all-nightly update assertnochanges assertnoconflicts version compile clean release source prepare-release-bundle createfolder diskimage nightly tarball
    99 
   102 
   162 	@# sign the executable
   165 	@# sign the executable
   163 ifeq ($(OFFICIAL_BUILD),TRUE)
   166 ifeq ($(OFFICIAL_BUILD),TRUE)
   164 	if [ -e ~/adium-password ]; then \
   167 	if [ -e ~/adium-password ]; then \
   165 		security unlock-keychain -p `cat ~/adium-password`; \
   168 		security unlock-keychain -p `cat ~/adium-password`; \
   166 	fi
   169 	fi
   167 	codesign --verbose --force --sign "Developer ID Application: Instant Messaging Freedom, Inc." --requirements "=designated => anchor apple generic  and identifier \"com.adiumX.adiumX\" and ((cert leaf[field.1.2.840.113635.100.6.1.9] exists) or ( certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU] = \"VQ6ZEL8UD3\" ))" $(ADIUM_DIR)/Adium.app/Contents/Resources/AdiumApplescriptRunner
   170 	
   168 	codesign --verbose --force --sign "Developer ID Application: Instant Messaging Freedom, Inc." --requirements "=designated => anchor apple generic  and identifier \"com.adiumX.adiumX\" and ((cert leaf[field.1.2.840.113635.100.6.1.9] exists) or ( certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU] = \"VQ6ZEL8UD3\" ))" $(ADIUM_DIR)/Adium.app
   171 	@# One approach would be to sign each framework and other bundle individually....
       
   172 	@# codesign --verbose --force --sign $(SIGNING_CERT_NAME) --deep --requirements $(SIGNING_REQUIREMENTS) $(ADIUM_DIR)/Adium.app/Contents/Frameworks/*.framework
       
   173 	@# codesign --verbose --force --sign $(SIGNING_CERT_NAME) --requirements $(SIGNING_REQUIREMENTS) $(ADIUM_DIR)/Adium.app/Contents/Library/Spotlight/*.mdimporter
       
   174 	@# codesign --verbose --force --sign $(SIGNING_CERT_NAME) --requirements $(SIGNING_REQUIREMENTS) $(ADIUM_DIR)/Adium.app/Contents/Resources/AdiumApplescriptRunner
       
   175 	@# codesign --verbose --force --sign $(SIGNING_CERT_NAME) --requirements $(SIGNING_REQUIREMENTS) $(ADIUM_DIR)/Adium.app
       
   176 	
       
   177 	@# However, it appears fine to use --deep and get it all recursively
       
   178 	codesign --verbose --force --deep --sign $(SIGNING_CERT_NAME) --requirements $(SIGNING_REQUIREMENTS) $(ADIUM_DIR)/Adium.app
       
   179 	
       
   180 	@# verify successful signing of the full bundle
       
   181 	codesign --verbose --verify --deep $(ADIUM_DIR)/Adium.app
   169 endif
   182 endif
   170 
   183 
   171 createfolder:
   184 createfolder:
   172 	@# clean build directory
   185 	@# clean build directory
   173 	rm -rf $(BUILD_DIR)
   186 	rm -rf $(BUILD_DIR)