|
4 | 4 |
|
5 | 5 | # Change to your own Apple Developer ID, if you want to code-sign the resultant .app |
6 | 6 | TEAMID ?= ZD8TVTCXDS |
7 | | -DEVID ?= 3rd Party Mac Developer Application: Perry Kundert ($(TEAMID)) |
8 | | -DEVIDLOC ?= Developer ID Application: Perry Kundert ($(TEAMID)) |
| 7 | +#DEVID ?= 3rd Party Mac Developer Application: Perry Kundert ($(TEAMID)) |
| 8 | +DEVID ?= Developer ID Application: Perry Kundert ($(TEAMID)) |
9 | 9 | PKGID ?= 3rd Party Mac Developer Installer: Perry Kundert ($(TEAMID)) |
10 | 10 | BUNDLEID ?= ca.kundert.perry.SLIP39 |
11 | 11 | APIISSUER ?= 5f3b4519-83ae-4e01-8d31-f7db26f68290 |
@@ -186,18 +186,11 @@ dist/SLIP39.zip.notarization-status: dist/SLIP39.zip.notarization FORCE |
186 | 186 | # o Create a ZIP archive suitable for notarization. |
187 | 187 | # |
188 | 188 | dist/SLIP39.zip: dist/SLIP39.app |
189 | | - rm -f $@ |
190 | | - # grep -q "CFBundleVersion" "$</Contents/Info.plist" || sed -i "" -e 's:<dict>:<dict>\n\t<key>CFBundleVersion</key>\n\t<string>0.0.0</string>:' "$</Contents/Info.plist" |
191 | | - # sed -i "" -e "s:0.0.0:$(VERSION):" "$</Contents/Info.plist" |
192 | | - # cat $</Contents/Info.plist |
193 | | - # codesign -dv -r- $< |
194 | | - # codesign -vv $< |
195 | | - # codesign --deep --force --options=runtime --timestamp \ |
196 | | - # --entitlements ./SLIP39.metadata/entitlements.plist \ |
197 | | - # --sign "$(DEVID)" \ |
198 | | - # $< |
| 189 | + echo "Checking signature..."; ./SLIP39.metadata/check-signature $< |
| 190 | + codesign --verify $< |
199 | 191 | codesign -dv -r- $< |
200 | 192 | codesign -vv $< |
| 193 | + rm -f $@ |
201 | 194 | /usr/bin/ditto -c -k --keepParent "$<" "$@" |
202 | 195 | @ls -last dist |
203 | 196 |
|
@@ -260,29 +253,23 @@ dist/SLIP39.app: SLIP39.spec \ |
260 | 253 | rm -rf build $@* |
261 | 254 | sed -I "" -E "s/version=.*/version='$(VERSION)',/" $< |
262 | 255 | sed -I "" -E "s/'CFBundleVersion':.*/'CFBundleVersion':'$(VERSION)',/" $< |
| 256 | + sed -I "" -E "s/codesign_identity=.*/codesign_identity='$(DEVID)',/" $< |
263 | 257 | pyinstaller --noconfirm $< |
264 | 258 | echo "Checking signature (pyinstaller signed)..."; ./SLIP39.metadata/check-signature $@ || true |
265 | 259 | codesign --verify $@ |
266 | | - codesign --deep --force \ |
267 | | - --all-architectures --options=runtime --timestamp \ |
268 | | - --sign "$(DEVID)" \ |
269 | | - $@ |
270 | | - echo "Checking signature (app code signed)..."; ./SLIP39.metadata/check-signature $@ || true |
271 | | - codesign --verify $@ |
272 | | - codesign --deep --force \ |
273 | | - --all-architectures --options=runtime --timestamp \ |
274 | | - --entitlements ./SLIP39.metadata/entitlements.plist \ |
275 | | - --sign "$(DEVID)" \ |
276 | | - $@ |
277 | | - echo "Checking signature (app code + entitlements signed w/ $(DEVID))..."; ./SLIP39.metadata/check-signature $@ || true |
278 | | - codesign --verify $@ |
279 | | - codesign --deep --force \ |
280 | | - --all-architectures --options=runtime --timestamp \ |
281 | | - --entitlements ./SLIP39.metadata/entitlements.plist \ |
282 | | - --sign "$(DEVIDLOC)" \ |
283 | | - $@ |
284 | | - echo "Checking signature (app code + entitlements signed w/ $(DEVIDLOC))..."; ./SLIP39.metadata/check-signature $@ || true |
285 | | - codesign --verify $@ |
| 260 | + # codesign --deep --force \ |
| 261 | + # --all-architectures --options=runtime --timestamp \ |
| 262 | + # --sign "$(DEVID)" \ |
| 263 | + # $@ |
| 264 | + # echo "Checking signature (app code signed)..."; ./SLIP39.metadata/check-signature $@ || true |
| 265 | + # codesign --verify $@ |
| 266 | + # codesign --deep --force \ |
| 267 | + # --all-architectures --options=runtime --timestamp \ |
| 268 | + # --entitlements ./SLIP39.metadata/entitlements.plist \ |
| 269 | + # --sign "$(DEVID)" \ |
| 270 | + # $@ |
| 271 | + # echo "Checking signature (app code + entitlements signed w/ $(DEVID))..."; ./SLIP39.metadata/check-signature $@ || true |
| 272 | + # codesign --verify $@ |
286 | 273 | touch $@ # try to avoid unnecessary rebuilding |
287 | 274 |
|
288 | 275 | # |
|
0 commit comments