move to Docker

This commit is contained in:
rr- 2021-02-07 23:49:42 +01:00
parent 6ab7e93dc6
commit b1ae41e7b8
No known key found for this signature in database
GPG key ID: CC65E6FD28CAE42A
8 changed files with 18 additions and 2 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
TR1Main.dll

10
Dockerfile Normal file
View file

@ -0,0 +1,10 @@
FROM ubuntu:latest
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y gcc-mingw-w64-i686
WORKDIR /
ADD src /src
ENTRYPOINT ["/entrypoint.sh"]

View file

@ -13,6 +13,8 @@ You may download patched tombati.exe, TR1Main.dll from [releases](https://github
- i686-w64-mingw32-gcc - C/C++ compiler - i686-w64-mingw32-gcc - C/C++ compiler
- Vim @ WSL - IDE - Vim @ WSL - IDE
To compile the project with Docker, just run `./compile`.
## License ## License
This project is licensed under the GNU General Public License - see the COPYING.md file for details This project is licensed under the GNU General Public License - see the COPYING.md file for details

2
build
View file

@ -1,2 +0,0 @@
#!/bin/sh
i686-w64-mingw32-gcc -shared *.c -ldbghelp -o ~/TOMBATI/TR1Main.dll

0
build/.gitkeep Normal file
View file

3
compile Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
docker build -t tr1main .
docker run -v $(pwd)/entrypoint.sh:/entrypoint.sh -v $(pwd)/build:/build tr1main

2
entrypoint.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
i686-w64-mingw32-gcc -shared src/*.c -ldbghelp -o build/TR1Main.dll

View file