aboutsummaryrefslogtreecommitdiff
path: root/macos
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-03-22 10:50:11 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-03-22 10:50:11 -0700
commitc17366893892caa0131152db219dbeba27b3f6f4 (patch)
treed19c0d3d19b81c544d1c76906154913bf16c5a54 /macos
parent9b00526e44d04df6426b6d393d6def3050453f30 (diff)
downloadpandoc-c17366893892caa0131152db219dbeba27b3f6f4.tar.gz
macos/Makefile - add notarize target.
Diffstat (limited to 'macos')
-rw-r--r--macos/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/macos/Makefile b/macos/Makefile
index 678ae3b76..5ecb53b5a 100644
--- a/macos/Makefile
+++ b/macos/Makefile
@@ -21,8 +21,14 @@ $(BASE)-macOS.zip: signed.txt
ln -s $(DEST) $(BASE)
zip -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}" > $@
+
+notarize: gon.hcl $(BASE)-macOS.pkg
+ gon -log-level=info ./gon.hcl
+
clean:
- rm signed.txt $(BASE) pandoc.pkg
+ rm signed.txt $(BASE) pandoc.pkg gon.hcl
distclean: clean
rm $(ALL)