Initial commit: EifelDC - Discord-like Matrix chat platform
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
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
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.
This commit is contained in:
42
client/scripts/build-macos.sh
Executable file
42
client/scripts/build-macos.sh
Executable file
@@ -0,0 +1,42 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user