20 lines
456 B
Bash
Executable File
20 lines
456 B
Bash
Executable File
#!/bin/bash
|
|
# Build the macOS Dashboard widget without duplicating code
|
|
set -euo pipefail
|
|
|
|
WIDGET_NAME="CoBiEClock"
|
|
SRC_DIR="macos-widget"
|
|
BUILD_DIR="${WIDGET_NAME}.wdgt"
|
|
|
|
# Clean previous build
|
|
rm -rf "$BUILD_DIR"
|
|
mkdir "$BUILD_DIR"
|
|
|
|
# Copy unique widget files
|
|
cp "$SRC_DIR/Info.plist" "$SRC_DIR/index.html" "$BUILD_DIR/"
|
|
|
|
# Copy shared files from repository root
|
|
cp clock.js cobie.js style.css logo.svg "$BUILD_DIR/"
|
|
|
|
echo "Widget created: ${BUILD_DIR}"
|