]> gitweb.factorcode.org Git - factor.git/commitdiff
mason.release.sign: literals and cross-platform makes it a little weird
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 20 Jun 2022 23:22:38 +0000 (16:22 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 20 Jun 2022 23:22:38 +0000 (16:22 -0700)
extra/mason/release/sign/sign.factor

index bca12c5059fc33f028a7240f297d6649e016e720..d33656021cbdda6f0d56ff643b1e9df638ae8039 100644 (file)
@@ -19,9 +19,9 @@ HOOK: cert-path os ( -- path/f )
 
 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 ( -- )
@@ -32,7 +32,7 @@ M:: macosx sign-factor-app ( -- )
     ${
         "codesign" "--force" "--sign"
         "Developer ID Application"
-        cert-path normalize-path
+        cert-path
     }
     "Factor.app/" make-factor-path suffix
     short-running-process ;
@@ -43,7 +43,7 @@ M:: windows sign-factor-app ( -- )
             ${
                 "signtool" "sign"
                 "/v"
-                "/f" cert-path normalize-path
+                "/f" cert-path
             }
         ] dip make-factor-path suffix short-running-process
     ] each ;
@@ -59,6 +59,6 @@ M: macosx sign-archive ( path -- )
     ${
         "codesign" "--force" "--sign"
         "Developer ID Application"
-        cert-path normalize-path
+        cert-path
     } swap suffix
     short-running-process ;