mirror of
https://github.com/isledecomp/isle.git
synced 2026-02-28 15:07:38 +00:00
26 lines
917 B
Bash
26 lines
917 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Populate the Windows path inside of the wineprefix
|
|
# TODO: This is in here because writing to the registry seems
|
|
# to fail when performed in the Dockerfile itself; investigate
|
|
wine reg ADD 'HKCU\Environment' /v PATH /d 'C:\msvc\bin;C:\msvc\bin\winnt;C:\cmake\bin;C:\windows\system32;C:\' /f
|
|
wine reg ADD 'HKCU\Environment' /v INCLUDE /d 'C:\msvc\include;C:\msvc\mfc\include' /f
|
|
wine reg ADD 'HKCU\Environment' /v LIB /d 'C:\msvc\lib;C:\msvc\mfc\lib' /f
|
|
wine reg ADD 'HKCU\Environment' /v TMP /d 'Z:\build' /f
|
|
wine reg ADD 'HKCU\Environment' /v TEMP /d 'Z:\build' /f
|
|
|
|
# Configure build with CMake
|
|
wine cmake -B build isle -G "Ninja" $CMAKE_FLAGS
|
|
|
|
# Start compiling LEGO Island
|
|
if [ "x$JOBS" = "x" ]; then
|
|
JOBS=$(nproc)
|
|
fi
|
|
wine cmake --build build --parallel $JOBS
|
|
|
|
# Install to /install
|
|
wine cmake --install build --prefix install
|
|
|
|
# Unlock directories
|
|
chmod -R 777 isle install 2>/dev/null
|