Skip to content

Commit

Permalink
macos Makefile: change to using notarytool.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Jun 24, 2023
1 parent bcb346f commit 726822f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions macos/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,18 @@ $(BASE)-macOS.zip: $(DEST)/bin/pandoc-server $(DEST)/bin/pandoc-lua signed.txt
mv $(DEST) $(BASE)
zip --symlinks -r $@ $(BASE)

gon.hcl: version.txt
echo "notarize {\n path = \"$(BASE)-macOS.pkg\"\n bundle_id = \"org.pandoc.pandoc\"\n staple = true\n}\napple_id {\n username = \"jgm@berkeley.edu\"\n password = \"@env:AC_PASSWORD\"\n}" > $@
# gon.hcl: version.txt
# echo "notarize {\n path = \"$(BASE)-macOS.pkg\"\n bundle_id = \"org.pandoc.pandoc\"\n staple = true\n}\napple_id {\n username = \"jgm@berkeley.edu\"\n password = \"@env:AC_PASSWORD\"\n}" > $@

notarize: gon.hcl $(BASE)-macOS.pkg
gon -log-level=warn ./gon.hcl
#notarize: gon.hcl $(BASE)-macOS.pkg
# gon -log-level=warn ./gon.hcl

notarize: $(BASE)-macOS.pkg
xcrun notarytool submit $< --keychain-profile=pandoc --wait && \
xcrun stapler staple $<

clean:
rm signed.txt $(BASE) pandoc.pkg gon.hcl
rm signed.txt $(BASE) pandoc.pkg # gon.hcl

distclean: clean
rm $(ALL)
Expand Down

0 comments on commit 726822f

Please sign in to comment.