|
10 | 10 | TEAMID ?= ZD8TVTCXDS |
11 | 11 | # The unique App ID assigned by App Store Connect, under App Information (NOT your Apple ID!!) |
12 | 12 | APPID ?= 1608360813 |
13 | | -#DEVID ?= 3rd Party Mac Developer Application: Perry Kundert ($(TEAMID)) |
14 | 13 | #DEVID ?= Developer ID Application: Perry Kundert ($(TEAMID)) |
15 | | -DEVID ?= DDB5489E29389E9081E0A2FD83B6555D1B101829 |
| 14 | +#DEVID ?= DDB5489E29389E9081E0A2FD83B6555D1B101829 |
| 15 | +#DEVID ?= 3rd Party Mac Developer Application: Perry Kundert ($(TEAMID)) |
| 16 | +#DEVID ?= A5DE932A0649AE3B6F06A8134F3E19D2E19A8196 |
| 17 | +# Developer ID Application (not for Mac App Store) |
| 18 | +DEVID ?= EAA134BE299C43D27E33E2B8645FF4CF55DE8A92 |
| 19 | + |
16 | 20 | #PKGID ?= 3rd Party Mac Developer Installer: Perry Kundert ($(TEAMID)) |
| 21 | +#PKGID ?= 1B482CEB543825C33C366A5665B935D3CEC9FD05 |
| 22 | + |
17 | 23 | PKGID ?= Developer ID Installer: Perry Kundert ($(TEAMID)) |
18 | | -DSTID ?= Apple Distribution: Perry Kundert ($(TEAMID)) |
| 24 | + |
| 25 | + |
19 | 26 | BUNDLEID ?= ca.kundert.perry.SLIP39 |
20 | 27 | APIISSUER ?= 5f3b4519-83ae-4e01-8d31-f7db26f68290 |
21 | 28 | APIKEY ?= 5H98J7LKPC |
| 29 | +#PROVISION ?= ~/Documents/Apple/Certificates/SLIP39_Mac_App_Store_Provisioning.provisionprofile |
| 30 | +PROVISION ?= ~/Documents/Apple/Certificates/SLIP39_Mac_General_Provisioning.provisionprofile |
22 | 31 |
|
23 | 32 | # Various cx_Freeze targets are at paths with computed extensions, eg: build/exe.win-amd64-3.10/ |
24 | 33 | CXFREEZE_VER ?= 3.10 |
@@ -385,12 +394,15 @@ dist/SLIP-39-$(VERSION).dmg.upload-app: dist/SLIP-39-$(VERSION).dmg dist/SLIP-39 |
385 | 394 | # Must copy the app w/ ditto, into a target dir structure including the destination location, eg. /Applications/SLIP-39.app/... |
386 | 395 | # |
387 | 396 | dist/SLIP-39-$(VERSION).pkg: dist/SLIP-39.app |
388 | | - rm -rf /tmp/SLIP-39 |
389 | | - ditto $< /tmp/SLIP-39/Applications/SLIP-39.app |
390 | | - productbuild --sign "$(PKGID)" --timestamp \ |
| 397 | + #rm -rf /tmp/SLIP-39-pkg |
| 398 | + #ditto $< /tmp/SLIP-39-pkg/SLIP-39.app |
| 399 | + productbuild \ |
| 400 | + --sign "$(PKGID)" \ |
| 401 | + --timestamp \ |
391 | 402 | --identifier "$(BUNDLEID).pkg" \ |
392 | 403 | --version $(VERSION) \ |
393 | | - --root /tmp/SLIP-39/Applications/ / $@ |
| 404 | + --root "$<" "/Applications/SLIP-39.app/" \ |
| 405 | + $@ |
394 | 406 |
|
395 | 407 |
|
396 | 408 | # Confirm that the .pkg is signed w/ the correct certificates. |
@@ -609,30 +621,36 @@ dist/SLIP-39.app-checkids: SLIP-39.spec |
609 | 621 | # |
610 | 622 | dist/SLIP-39.app: SLIP-39-macOS.spec \ |
611 | 623 | SLIP-39.metadata/entitlements.plist \ |
612 | | - images/SLIP-39.icns |
| 624 | + images/SLIP-39.icns \ |
| 625 | + $(PROVISION) |
613 | 626 | @echo -e "\n\n*** Rebuilding $@, version $(VERSION)..." |
614 | 627 | rm -rf build $@* |
615 | 628 | sed -I "" -E "s/version=.*/version='$(VERSION)',/" $< |
616 | 629 | sed -I "" -E "s/'CFBundleVersion':.*/'CFBundleVersion':'$(VERSION)',/" $< |
617 | 630 | sed -I "" -E "s/codesign_identity=.*/codesign_identity='$(DEVID)',/" $< |
618 | 631 | pyinstaller --noconfirm $< |
| 632 | + #echo "Copying Provisioning Profile..."; rsync -va $(PROVISION) $@/Contents/embedded.provisionprofile |
619 | 633 | echo "Checking signature (pyinstaller signed)..."; ./SLIP-39.metadata/check-signature $@ || true |
620 | | - codesign --verify $@ |
| 634 | + codesign --verify --verbose $@ |
621 | 635 | # codesign --deep --force \ |
622 | 636 | # --all-architectures --options=runtime --timestamp \ |
623 | 637 | # --sign "$(DEVID)" \ |
624 | 638 | # $@ |
625 | 639 | # echo "Checking signature (app code signed)..."; ./SLIP-39.metadata/check-signature $@ || true |
626 | 640 | # codesign --verify $@ |
627 | | - codesign --deep --force \ |
628 | | - --all-architectures --options=runtime --timestamp \ |
| 641 | + codesign --deep --force --timestamp --verbose --options runtime \ |
| 642 | + --all-architectures \ |
629 | 643 | --entitlements ./SLIP-39.metadata/entitlements.plist \ |
630 | 644 | --sign "$(DEVID)" \ |
631 | 645 | $@ |
632 | 646 | echo "Checking signature (app code + entitlements signed w/ $(DEVID))..."; ./SLIP-39.metadata/check-signature $@ || true |
633 | | - codesign --verify $@ |
| 647 | + codesign --verify --verbose $@ |
634 | 648 | touch $@ # try to avoid unnecessary rebuilding |
635 | 649 |
|
| 650 | +app-assess: dist/SLIP-39.app |
| 651 | + spctl --assess --type execute --context context:primary-signature -vvv $< |
| 652 | + |
| 653 | + |
636 | 654 | # |
637 | 655 | # Only used for initial creation of SLIP-39.spec; it must be customized, so this target cannot be |
638 | 656 | # used to achieve a complete, operational SLIP-39.spec file! |
|
0 commit comments