Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(desktop): read the provisioning profile without a keychain (#8614)

Eric Hayes5104d99318c3
diff --git a/nix/tauri-desktop.nix b/nix/tauri-desktop.nix
index 3d838b9b5e..3a95075e19 100644
--- a/nix/tauri-desktop.nix
+++ b/nix/tauri-desktop.nix
@@ -1112,7 +1112,10 @@
write_app_entitlements() {
local app="$1" out="$2"
local profile="$TMPDIR/macro-provisionprofile.plist"
- security cms -D -i "$MACOS_PROVISIONING_PROFILE" > "$profile"
+ # Not `security cms -D`: it imports the profile's certificates into
+ # a keychain, which the Nix build user cannot write.
+ ${pkgs.openssl}/bin/openssl smime -inform der -verify -noverify \
+ -in "$MACOS_PROVISIONING_PROFILE" -out "$profile"
local team_id bundle_id app_id communication
team_id=$(/usr/libexec/PlistBuddy -c 'Print :TeamIdentifier:0' "$profile")
bundle_id=$(/usr/libexec/PlistBuddy -c 'Print :CFBundleIdentifier' "$app/Contents/Info.plist")