mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 20:58:07 +03:00
move to Docker
This commit is contained in:
parent
6ab7e93dc6
commit
b1ae41e7b8
8 changed files with 18 additions and 2 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
TR1Main.dll
|
10
Dockerfile
Normal file
10
Dockerfile
Normal 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"]
|
|
@ -13,6 +13,8 @@ You may download patched tombati.exe, TR1Main.dll from [releases](https://github
|
|||
- i686-w64-mingw32-gcc - C/C++ compiler
|
||||
- Vim @ WSL - IDE
|
||||
|
||||
To compile the project with Docker, just run `./compile`.
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under the GNU General Public License - see the COPYING.md file for details
|
||||
|
|
2
build
2
build
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
i686-w64-mingw32-gcc -shared *.c -ldbghelp -o ~/TOMBATI/TR1Main.dll
|
0
build/.gitkeep
Normal file
0
build/.gitkeep
Normal file
3
compile
Executable file
3
compile
Executable 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
2
entrypoint.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
i686-w64-mingw32-gcc -shared src/*.c -ldbghelp -o build/TR1Main.dll
|
Loading…
Add table
Add a link
Reference in a new issue