mirror of
https://github.com/morgan9e/bitwarden-desktop-agent
synced 2026-04-14 00:04:06 +09:00
add Secure Enclave backend with Swift helper
This commit is contained in:
13
Makefile
13
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user