Project to build sotw in a docker container and output the compiled program to the filesystem
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
FROM debian:stretch
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|
|
|
git \
|
|
|
|
g++ \
|
|
|
|
libboost1.62-dev \
|
|
|
|
libboost-all-dev \
|
|
|
|
libncurses5-dev \
|
|
|
|
libncursesw5-dev \
|
|
|
|
libsdl2-dev \
|
|
|
|
libxerces-c-dev \
|
|
|
|
lua5.1 \
|
|
|
|
liblua5.1-0-dev \
|
|
|
|
libsdl2-image-2.0-0 \
|
|
|
|
libsdl2-image-dev \
|
|
|
|
make \
|
|
|
|
premake4 \
|
|
|
|
zlibc
|
|
|
|
RUN apt-get clean
|
|
|
|
|
|
|
|
# fetch the sotw repo
|
|
|
|
RUN git clone https://github.com/prolog/shadow-of-the-wyrm
|
|
|
|
# cd shadow-of-the-wyrm && \
|
|
|
|
# git checkout develop
|
|
|
|
|
|
|
|
# build sotw
|
|
|
|
RUN cd shadow-of-the-wyrm && \
|
|
|
|
premake4 --lua_include=/usr/include/lua5.1 --lua_link=lua5.1 gmake && \
|
|
|
|
make config=release
|
|
|
|
|
|
|
|
# update ini to be curses by default
|
|
|
|
RUN cd shadow-of-the-wyrm && \
|
|
|
|
sed -i 's/display=sdl/display=curses/g' swyrm.ini
|
|
|
|
|
|
|
|
# update ini to match current season by default
|
|
|
|
RUN cd shadow-of-the-wyrm && \
|
|
|
|
sed -i 's/current_month_is_start_month=0/current_month_is_start_month=1/g' swyrm.ini
|
|
|
|
|
|
|
|
# remove git data from package
|
|
|
|
RUN rm -rf shadow-of-the-wyrm/.git*
|
|
|
|
|
|
|
|
RUN tar -czf shadow-of-the-wyrm.tar.gz shadow-of-the-wyrm/
|
|
|
|
|
|
|
|
CMD ["cp", "/shadow-of-the-wyrm.tar.gz", "/stage/"]
|