Ariver
2026-07-07 ae7fcc35862edb366ed7775d3dc7e93e53e59290
C1.source/build.sh
@@ -106,11 +106,16 @@
# Set CODESIGN_IDENTITY to your "Apple Distribution" or "Mac Developer" cert name.
# Example: CODESIGN_IDENTITY="Apple Distribution: Your Name (TEAMID)"
CODESIGN_IDENTITY="${CODESIGN_IDENTITY:-}"
ENTITLEMENTS="$SWIFT_DIR/TagLauncher.entitlements"
BASE_ENTITLEMENTS="$SWIFT_DIR/TagLauncher.entitlements"
APP_STORE_ENTITLEMENTS="${APP_STORE_ENTITLEMENTS:-$SWIFT_DIR/TagLauncher-AppStore.entitlements}"
ENTITLEMENTS="$BASE_ENTITLEMENTS"
APP_STORE_MODE=false
if [ -n "${APP_STORE:-}" ] && [ "$APP_STORE" = "1" ]; then
    APP_STORE_MODE=true
    if [ -f "$APP_STORE_ENTITLEMENTS" ]; then
        ENTITLEMENTS="$APP_STORE_ENTITLEMENTS"
    fi
    if [ -z "$CODESIGN_IDENTITY" ]; then
        echo "⚠️  APP_STORE=1 but CODESIGN_IDENTITY not set. Will ad-hoc sign with entitlements."
    fi