Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: chrome/test/data/safe_browsing/mach_o/Makefile

Issue 2934373002: Record Code Signature of Downloaded DMG files (Closed)
Patch Set: addressing comments Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 KEYCHAIN_PASSWORD=g0atMaster 5 KEYCHAIN_PASSWORD=g0atMaster
6 # This must match the commonName in codesign.cfg. 6 # This must match the commonName in codesign.cfg.
7 KEYCHAIN_IDENTITY=untrusted@goat.local 7 KEYCHAIN_IDENTITY=untrusted@goat.local
8 8
9 executable32: src.c 9 executable32: src.c
10 clang -m32 -o $@ $^ 10 clang -m32 -o $@ $^
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 $(PWD)/codesign.keychain 51 $(PWD)/codesign.keychain
52 codesign -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain $@ 52 codesign -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain $@
53 53
54 signedexecutablefat: executablefat codesign.keychain 54 signedexecutablefat: executablefat codesign.keychain
55 cp $< $@ 55 cp $< $@
56 security unlock-keychain -p $(KEYCHAIN_PASSWORD) \ 56 security unlock-keychain -p $(KEYCHAIN_PASSWORD) \
57 $(PWD)/codesign.keychain 57 $(PWD)/codesign.keychain
58 codesign -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain \ 58 codesign -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain \
59 $@ --all-architectures 59 $@ --all-architectures
60 60
61 signed-archive.dmg: codesign.keychain
62 hdiutil create -srcfolder base-bundle.app -format UDZO -layout SPUD -vol name "Signed Archive" -ov $@
63 codesign -f -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain $@
64
61 .PHONY: test-bundle.app 65 .PHONY: test-bundle.app
62 test-bundle.app: signedexecutablefat libsigned64.dylib executable32 66 test-bundle.app: signedexecutablefat libsigned64.dylib executable32
63 ditto base-bundle.app $@ 67 ditto base-bundle.app $@
64 ditto $< $@/Contents/MacOS/test-bundle 68 ditto $< $@/Contents/MacOS/test-bundle
65 ditto $(word 2,$^) $@/Contents/Frameworks/$(word 2,$^) 69 ditto $(word 2,$^) $@/Contents/Frameworks/$(word 2,$^)
66 ditto $(word 3,$^) $@/Contents/Resources/$(word 3,$^) 70 ditto $(word 3,$^) $@/Contents/Resources/$(word 3,$^)
67 security unlock-keychain -p $(KEYCHAIN_PASSWORD) \ 71 security unlock-keychain -p $(KEYCHAIN_PASSWORD) \
68 $(PWD)/codesign.keychain 72 $(PWD)/codesign.keychain
69 codesign -f -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain \ 73 codesign -f -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain \
70 $@ --all-architectures --resource-rules ResourceRules 74 $@ --all-architectures --resource-rules ResourceRules
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 114
111 .PHONY: modified-localization.app 115 .PHONY: modified-localization.app
112 modified-localization.app: test-bundle.app 116 modified-localization.app: test-bundle.app
113 ditto $< $@ 117 ditto $< $@
114 echo "<xml/>" > $@/Contents/Resources/Base.lproj/InfoPlist.strings 118 echo "<xml/>" > $@/Contents/Resources/Base.lproj/InfoPlist.strings
115 security unlock-keychain -p $(KEYCHAIN_PASSWORD) \ 119 security unlock-keychain -p $(KEYCHAIN_PASSWORD) \
116 $(PWD)/codesign.keychain 120 $(PWD)/codesign.keychain
117 codesign -f -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain \ 121 codesign -f -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain \
118 $@ --all-architectures --resource-rules ResourceRules 122 $@ --all-architectures --resource-rules ResourceRules
119 echo "CORRUPT" > $@/Contents/Resources/Base.lproj/InfoPlist.strings 123 echo "CORRUPT" > $@/Contents/Resources/Base.lproj/InfoPlist.strings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698