mason.release: Sign the .dmg on macOS.

Fixes #1896.
paths
Doug Coleman 2018-03-14 14:07:30 -05:00
parent 3f64af43e1
commit a16707b176
2 changed files with 16 additions and 0 deletions

View File

@ -12,6 +12,7 @@ IN: mason.release
sign-factor-app sign-factor-app
archive-name { archive-name {
[ make-archive ] [ make-archive ]
[ sign-archive ]
[ upload ] [ upload ]
[ save-archive ] [ save-archive ]
[ notify-release ] [ notify-release ]

View File

@ -47,3 +47,18 @@ M:: windows sign-factor-app ( -- )
} }
] dip make-factor-path suffix short-running-process ] dip make-factor-path suffix short-running-process
] each ; ] each ;
HOOK: sign-archive os ( path -- )
M: object sign-archive drop ;
! Sign the .dmg on macOS as well to avoid Gatekeeper marking
! the xattrs as quarantined.
! https://github.com/factor/factor/issues/1896
M: macosx sign-archive ( path -- )
${
"codesign" "--force" "--sign"
"Developer ID Application"
cert-path
} swap suffix
short-running-process ;