Files
eifeldc/client/scripts/build-macos.sh
root 0978d0c2e9
Some checks failed
CI / Rust Check (push) Has been cancelled
CI / Rust Tests (push) Has been cancelled
CI / Frontend Check (push) Has been cancelled
CI / Build Tauri (macOS) (push) Has been cancelled
CI / Build Tauri (macOS Intel) (push) Has been cancelled
CI / Build Tauri (Linux) (push) Has been cancelled
Initial commit: EifelDC - Discord-like Matrix chat platform
Includes server (Rust/Axum API proxy with voice management),
Tauri desktop client with Svelte UI, bot-sdk, Docker infra
(Synapse, PostgreSQL, Coturn, Nginx), and CI/CD pipeline.
2026-04-28 08:23:23 +02:00

42 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
TARGET="${1:-}"
if [ -n "$TARGET" ]; then
TARGET_ARG="--target $TARGET"
else
TARGET_ARG=""
fi
echo "=== Building EifelDC for macOS ==="
echo "Target: ${TARGET:-native}"
echo "[1/3] Installing frontend dependencies..."
cd "${PROJECT_DIR}/client/src-ui"
npm ci
echo "[2/3] Building frontend..."
npm run build
echo "[3/3] Building Tauri app..."
cd "${PROJECT_DIR}/client"
cargo tauri build $TARGET_ARG
echo ""
echo "=== Build complete! ==="
if [ -n "$TARGET" ]; then
BUNDLE_DIR="${PROJECT_DIR}/client/src-tauri/target/${TARGET}/release/bundle"
else
BUNDLE_DIR="${PROJECT_DIR}/client/src-tauri/target/release/bundle"
fi
if [ -d "${BUNDLE_DIR}/dmg" ]; then
echo "DMG: $(find "${BUNDLE_DIR}/dmg" -name '*.dmg' 2>/dev/null || echo 'not found')"
fi
if [ -d "${BUNDLE_DIR}/macos" ]; then
echo "App: $(find "${BUNDLE_DIR}/macos" -name '*.app' 2>/dev/null || echo 'not found')"
fi