#!/usr/bin/env bash #MISE description="Stage the CEF runtime and desktop files for packaging" # Usage: scripts/cef/stage.sh [stage-dir] [display-name] [profile] set -euo pipefail ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" cd "$ROOT" STAGE="${1:-$ROOT/src-tauri/target/cef-stage}" DISPLAY_NAME="${2:-Sable}" PROFILE="${3:-release}" RUNTIME="$STAGE/runtime" SHARE="$STAGE/share" rm -rf "$STAGE" mkdir -p "$RUNTIME" "$SHARE/applications" bash scripts/cef/copy-libs.sh "$PROFILE" "$RUNTIME" cat > "$SHARE/applications/sable.desktop" <