Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions scripts/build-desktop-artifact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1528,10 +1528,14 @@ const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* (
// electron-builder is filtering out stageResourcesDir directory in the AppImage for production
yield* fs.copy(stageResourcesDir, path.join(stageAppDir, "apps/desktop/prod-resources"));

const repoEnv = loadRepoEnv({ repoRoot });
const hasMacPasskeySigningConfiguration = Boolean(
repoEnv.T3CODE_APPLE_TEAM_ID?.trim() && repoEnv.T3CODE_MACOS_PROVISIONING_PROFILE?.trim(),
);
const configuredMacPasskeySigning =
options.platform === "mac" && options.signed
options.platform === "mac" && options.signed && hasMacPasskeySigningConfiguration
? yield* Effect.try({
try: () => resolveMacPasskeySigningConfiguration(loadRepoEnv({ repoRoot })),
try: () => resolveMacPasskeySigningConfiguration(repoEnv),
catch: MacPasskeySigningConfigurationResolutionError.fromCause,
})
: undefined;
Expand Down
Loading