@@ -29,7 +29,8 @@ cp $(pwd)/preinstall $pkg_scripts
29cp $(pwd)/postinstall $pkg_scripts
29cp $(pwd)/postinstall $pkg_scripts
32+ --sign "Developer ID Installer: <NAME>" \
32− --identifier org.elm-lang.binaries.pkg \
33+ --identifier org.elm-lang.binary \
33 --install-location $usr_binaries \
34 --install-location $usr_binaries \
34 --scripts $pkg_scripts \
35 --scripts $pkg_scripts \
35 --filter 'Scripts.*' \
36 --filter 'Scripts.*' \
@@ -39,16 +40,42 @@ pkgbuild \
40#### BUNDLE ASSETS ####
41#### BUNDLE ASSETS ####
42−rm -f Elm.pkg
43+rm -f installer-for-mac.pkg
44productbuild \
45productbuild \
46+ --sign "Developer ID Installer: <NAME>" \
47+ --identifier org.elm-lang.installer \
45 --distribution Distribution.xml \
48 --distribution Distribution.xml \
46 --package-path . \
49 --package-path . \
47 --resources Resources \
50 --resources Resources \
48− Elm.pkg
51+ installer-for-mac.pkg
51#### CLEAN UP ####
54#### CLEAN UP ####
53rm binaries.pkg
56rm binaries.pkg
54rm -rf $pkg_root
57rm -rf $pkg_root
60+#### BEGIN NOTARIZATION ####
64+ --primary-bundle-id "org.elm-lang.installer" \
65+ --username "<EMAIL>" \
66+ --password "@keychain:Developer-altool" \
67+ --file "installer-for-mac.pkg"
69+# From https://scriptingosx.com/2019/09/notarize-a-command-line-tool/
71+#### Check on notarization:
74+# --notarization-info "<RequestUUID>" \
75+# --username "<EMAIL>" \
76+# --password "@keychain:Developer-altool"
79+#### Staple Notarization:
81+# xcrun stapler staple installer-for-mac.pkg