add Secure Enclave backend with Swift helper

This commit is contained in:
2026-03-22 05:20:20 +09:00
parent 91ea660687
commit b6db3d8f1c
7 changed files with 303 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
PREFIX ?= $(HOME)/.local/bin
IDENTITY ?= -
all:
cargo build --release
@@ -8,8 +9,15 @@ install: all
install -m 755 target/release/bw-agent $(PREFIX)/bw-agent
install -m 755 target/release/bw-proxy $(PREFIX)/bw-proxy
sep:
swiftc -O -o target/release/sep-helper src/sep/sep-helper.swift
codesign --force --sign "$(IDENTITY)" --entitlements src/sep/sep-helper.entitlements target/release/sep-helper
install-sep: sep
install -m 755 target/release/sep-helper $(PREFIX)/sep-helper
uninstall:
rm -f $(PREFIX)/bw-agent $(PREFIX)/bw-proxy
rm -f $(PREFIX)/bw-agent $(PREFIX)/bw-proxy $(PREFIX)/sep-helper
launchd:
mkdir -p $(HOME)/Library/LaunchAgents
@@ -36,5 +44,6 @@ systemd-unload:
clean:
cargo clean
rm -f target/release/sep-helper
.PHONY: all install uninstall launchd launchd-unload systemd systemd-unload clean
.PHONY: all install sep install-sep uninstall launchd launchd-unload systemd systemd-unload clean