Skip to content

Commit 726822f

Browse files
committed
macos Makefile: change to using notarytool.
1 parent bcb346f commit 726822f

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

macos/Makefile

+9-5
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,18 @@ $(BASE)-macOS.zip: $(DEST)/bin/pandoc-server $(DEST)/bin/pandoc-lua signed.txt
2727
mv $(DEST) $(BASE)
2828
zip --symlinks -r $@ $(BASE)
2929

30-
gon.hcl: version.txt
31-
echo "notarize {\n path = \"$(BASE)-macOS.pkg\"\n bundle_id = \"org.pandoc.pandoc\"\n staple = true\n}\napple_id {\n username = \"[email protected]\"\n password = \"@env:AC_PASSWORD\"\n}" > $@
30+
# gon.hcl: version.txt
31+
# echo "notarize {\n path = \"$(BASE)-macOS.pkg\"\n bundle_id = \"org.pandoc.pandoc\"\n staple = true\n}\napple_id {\n username = \"[email protected]\"\n password = \"@env:AC_PASSWORD\"\n}" > $@
3232

33-
notarize: gon.hcl $(BASE)-macOS.pkg
34-
gon -log-level=warn ./gon.hcl
33+
#notarize: gon.hcl $(BASE)-macOS.pkg
34+
# gon -log-level=warn ./gon.hcl
35+
36+
notarize: $(BASE)-macOS.pkg
37+
xcrun notarytool submit $< --keychain-profile=pandoc --wait && \
38+
xcrun stapler staple $<
3539

3640
clean:
37-
rm signed.txt $(BASE) pandoc.pkg gon.hcl
41+
rm signed.txt $(BASE) pandoc.pkg # gon.hcl
3842

3943
distclean: clean
4044
rm $(ALL)

0 commit comments

Comments
 (0)