]> gitweb.factorcode.org Git - factor.git/commitdiff
mason.release.sign: sign some other files on macos.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 20 Jan 2023 17:22:02 +0000 (09:22 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 20 Jan 2023 17:22:02 +0000 (09:22 -0800)
extra/mason/release/sign/sign.factor

index 4956417858543348520fe2707400afd9a00b743a..66f185716e8768c90d4d3ed0e3309bfdeaff1beb 100644 (file)
@@ -29,24 +29,26 @@ HOOK: sign-factor-app os ( -- )
 M: object sign-factor-app ;
 
 M: macosx sign-factor-app
-    ${
-        "codesign" "--force" "--sign"
-        "Developer ID Application"
-        cert-path
-    }
-    "Factor.app/" make-factor-path suffix
-    short-running-process ;
+    {
+        "Factor.app/"
+        "libfactor.dylib"
+        "libfactor-ffi-test.dylib"
+    } [
+        ${
+            "codesign" "--force" "--sign"
+            "Developer ID Application"
+            cert-path
+        } swap make-factor-path suffix short-running-process
+    ] each ;
 
 M:: windows sign-factor-app ( -- )
     { "factor.com" "factor.exe" } [
-        [
-            ${
-                "signtool" "sign"
-                "/fd" "sha256"
-                "/v"
-                "/f" cert-path
-            }
-        ] dip make-factor-path suffix short-running-process
+        ${
+            "signtool" "sign"
+            "/fd" "sha256"
+            "/v"
+            "/f" cert-path
+        } swap make-factor-path suffix short-running-process
     ] each ;
 
 HOOK: sign-archive os ( path -- )