mirror of
https://github.com/dlang-community/DCD.git
synced 2025-04-27 05:39:55 +03:00

Build win{32,64} binaries with LDC merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
22 lines
516 B
Bash
Executable file
22 lines
516 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Build the Windows binaries under Linux
|
|
set -eux -o pipefail
|
|
|
|
BIN_NAME=dcd
|
|
|
|
# Allow the script to be run from anywhere
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
cd $DIR
|
|
|
|
source setup-ldc-windows.sh
|
|
|
|
# Run LDC with cross-compilation
|
|
archiveName="$BIN_NAME-$VERSION-$OS-$ARCH_SUFFIX.zip"
|
|
echo "Building $archiveName"
|
|
mkdir -p bin
|
|
DC=ldmd2 make ldcclient ldcserver
|
|
|
|
cd bin
|
|
mv dcd-client dcd-client.exe
|
|
mv dcd-server dcd-server.exe
|
|
zip "$archiveName" "dcd-client.exe" "dcd-server.exe"
|