19 lines
586 B
Bash
Executable File
19 lines
586 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script now uses Docker for consistent builds
|
|
# For direct builds, use the Docker-based build.sh script in the parent directory
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
|
PARENT_DIR="$(dirname "${SCRIPT_DIR}")"
|
|
|
|
echo "Using Docker-based build system..."
|
|
echo "Building release version for production..."
|
|
|
|
# Run the Docker build with release settings
|
|
CMAKE_BUILD_TYPE=Release INSTALL_LOCAL=false "${PARENT_DIR}/build.sh"
|
|
|
|
echo "Static binary has been created in ${PARENT_DIR}/output/"
|
|
ls -la "${PARENT_DIR}/output"
|