Skip to content

Commit b51c3c7

Browse files
danielbodartclaude
andcommitted
Replace fulcio-codesign.sh with fulcio-codesign binary
Switch from the 362-line bash script to the standalone Zig binary (github:danielbodart/fulcio-codesign) installed via mise. No more runtime dependency on openssl, curl, jq, python3, or security CLI. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2d17487 commit b51c3c7

5 files changed

Lines changed: 14 additions & 367 deletions

File tree

.mise.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ zig = "0.15.2"
33
bun = "1.3.10"
44
shellcheck = "0.11.0"
55
cosign = "3.0.5"
6-
"github:indygreg/apple-platform-rs" = { version = "apple-codesign/0.29.0", exe = "rcodesign", matching = "apple-codesign" }
6+
"github:danielbodart/fulcio-codesign" = "latest"

dist/macos/entitlements.plist

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.device.audio-input</key>
6+
<true/>
7+
</dict>
8+
</plist>

run.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,10 @@ export async function sign() {
285285

286286
const hasOidc = !!process.env.ACTIONS_ID_TOKEN_REQUEST_URL;
287287

288-
// macOS: sign the Mach-O binary with Fulcio cert via rcodesign
288+
// macOS: sign the Mach-O binary with Fulcio cert
289289
if (IS_MACOS) {
290290
console.log("Signing macOS binary with Fulcio...");
291-
await $`./scripts/fulcio-codesign.sh ${PLATFORM_DIR}/bin/capsper`;
291+
await $`fulcio-codesign --identifier io.github.danielbodart.capsper --subject io.github.danielbodart.capsper --entitlements dist/macos/entitlements.plist ${PLATFORM_DIR}/bin/capsper`;
292292
// Re-create tarball with signed binary
293293
await distMacOS();
294294
}

scripts/fulcio-codesign.sh

Lines changed: 0 additions & 361 deletions
This file was deleted.

0 commit comments

Comments
 (0)