mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
initial Docker support (#1308)
This commit is contained in:
19
docker/entrypoint.sh
Normal file
19
docker/entrypoint.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/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' /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 "NMake Makefiles" $CMAKE_FLAGS
|
||||
|
||||
# Start compiling LEGO Island
|
||||
wine cmake --build build
|
||||
|
||||
# Unlock directories
|
||||
chmod -R 777 isle build
|
Reference in New Issue
Block a user