M: object cert-path f ;
-M: macosx cert-path "~/config/mac_app.cer" ;
+M: macosx cert-path home "config/mac_app.cer" append-path ;
-M: windows cert-path "~/config/FactorSPC.pfx" ;
+M: windows cert-path home "config/FactorSPC.pfx" append-path ;
>>
HOOK: sign-factor-app os ( -- )
${
"codesign" "--force" "--sign"
"Developer ID Application"
- cert-path normalize-path
+ cert-path
}
"Factor.app/" make-factor-path suffix
short-running-process ;
${
"signtool" "sign"
"/v"
- "/f" cert-path normalize-path
+ "/f" cert-path
}
] dip make-factor-path suffix short-running-process
] each ;
${
"codesign" "--force" "--sign"
"Developer ID Application"
- cert-path normalize-path
+ cert-path
} swap suffix
short-running-process ;