Files
DualFloatingClock/build_cross_platform.sh
sebastian 45fc172fc8
Build and Release DualFloatingClock / build-linux (push) Failing after 32s
CI Build / build (macos-latest) (push) Canceled after 0s
CI Build / build (windows-latest) (push) Canceled after 0s
Build and Release DualFloatingClock / build-macos (push) Canceled after 0s
Build and Release DualFloatingClock / build-windows (push) Canceled after 0s
Build and Release DualFloatingClock / generate-changelog (push) Canceled after 0s
Build and Release DualFloatingClock / create-release (push) Canceled after 0s
feat: rename project to DualFloatingClock, add README, public release
- Full rename: CMake target, bundle, LaunchAgent label
  (com.dualfloatingclock.clock), QSettings org/app, tray tooltip,
  icns resource, build scripts, CI workflows, sample config
- Config XML: new root DualFloatingClockConfig; reader accepts legacy
  ClouckConfig root for painless migration of existing settings
- README rewritten: fork provenance (ivaquero/clouck), features, build,
  tests, usage
- Drop stale README-CN.md
2026-08-27 22:36:05 +03:00

68 lines
1.6 KiB
Bash
Executable File

#!/bin/bash
# Cross-platform build script for DualFloatingClock
echo "Building DualFloatingClock - Cross-platform Clock Application"
echo "=================================================="
# Detect operating system
if [[ "$OSTYPE" == "darwin"* ]]; then
OS="macOS"
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
OS="Linux"
elif [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "win32" ]]; then
OS="Windows"
else
echo "Unsupported operating system: $OSTYPE"
exit 1
fi
echo "Detected OS: $OS"
echo ""
# Create build directory
mkdir -p build
# Clean old build files
echo "Cleaning old build files..."
rm -rf build/*
# Build using CMake (cross-platform)
echo "Configuring with CMake..."
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release
if [ $? -ne 0 ]; then
echo "CMake configuration failed!"
exit 1
fi
echo "Building project..."
cmake --build build --config Release
if [ $? -ne 0 ]; then
echo "Build failed!"
exit 1
fi
echo ""
echo "Build successful!"
echo ""
echo "Executable location:"
if [ "$OS" == "macOS" ]; then
echo " - build/DualFloatingClock.app/Contents/MacOS/DualFloatingClock (macOS)"
elif [ "$OS" == "Windows" ]; then
echo " - build/Release/DualFloatingClock.exe (Windows)"
elif [ "$OS" == "Linux" ]; then
echo " - build/DualFloatingClock (Linux)"
fi
echo ""
echo "To run the application:"
if [ "$OS" == "macOS" ]; then
echo " ./build/DualFloatingClock.app/Contents/MacOS/DualFloatingClock"
elif [ "$OS" == "Windows" ]; then
echo " ./build/Release/DualFloatingClock.exe"
elif [ "$OS" == "Linux" ]; then
echo " ./build/DualFloatingClock"
fi