Feature: Implement initial macOS SimpleRemoter client
This commit is contained in:
47
macos/build.sh
Normal file
47
macos/build.sh
Normal file
@@ -0,0 +1,47 @@
|
||||
#!/bin/bash
|
||||
|
||||
# macOS Ghost Client Build Script
|
||||
# Usage: ./build.sh
|
||||
|
||||
set -e
|
||||
|
||||
echo "=== macOS Ghost Client Build ==="
|
||||
echo ""
|
||||
|
||||
# Check for Xcode Command Line Tools
|
||||
if ! command -v clang &> /dev/null; then
|
||||
echo "Error: Xcode Command Line Tools not installed"
|
||||
echo "Run: xcode-select --install"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check for CMake
|
||||
if ! command -v cmake &> /dev/null; then
|
||||
echo "Error: CMake not installed"
|
||||
echo "Install with: brew install cmake"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Create build directory
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
# Configure
|
||||
echo "Configuring..."
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release
|
||||
|
||||
# Build
|
||||
echo ""
|
||||
echo "Building..."
|
||||
cmake --build . --config Release -j$(sysctl -n hw.ncpu)
|
||||
|
||||
# Done
|
||||
echo ""
|
||||
echo "=== Build Complete ==="
|
||||
echo "Executable: build/bin/ghost"
|
||||
echo ""
|
||||
echo "To run:"
|
||||
echo " ./bin/ghost [server_ip] [port]"
|
||||
echo ""
|
||||
echo "Example:"
|
||||
echo " ./bin/ghost 192.168.0.55 6543"
|
||||
Reference in New Issue
Block a user