#!/bin/bash

# macOS 签名配置脚本
# 请根据您的开发者账户信息修改以下配置

# Apple Developer 账户信息
export APPLE_ID="xxxxxxxx@example.com"
export APPLE_PASSWORD="xxxxxxxxxxxxxxxx"
export TEAM_ID="XXXXXXXXXX"

# 代码签名身份（运行 security find-identity -v -p codesigning 查看可用身份）
export SIGNING_IDENTITY="Developer ID Application: Your Name (YOUR_TEAM_ID)"

# 安装包签名身份
export INSTALLER_IDENTITY="Developer ID Installer: Your Name (YOUR_TEAM_ID)"

echo "🔧 macOS 签名配置已加载"
echo "📧 Apple ID: $APPLE_ID"
echo "🏢 Team ID: $TEAM_ID"
echo "🔐 签名身份: $SIGNING_IDENTITY"
echo ""
echo "💡 使用方法："
echo "1. 修改此文件中的配置信息"
echo "2. 运行: source macos_signing_config.sh"
echo "3. 运行: ./build_macos_dmg.sh"
