forked from snesrev/zelda3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adição de build com Docker, pullrequest snesrev#186
Correção no src/main.cs, pullrequest snesrev#247 Correção no src/opengl.cs, pullrequest snesrev#270 Correção no src/platform/switch/Makefile, pullrequest snesrev#273 Correção no MakeFile, pullrequest snesrev#276 Correção no src/select_file.c, pullrequest snesrev#292
- Loading branch information
1 parent
2a1e615
commit ce6f554
Showing
7 changed files
with
79 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
FROM ubuntu:20.04 as build | ||
ENV TZ=Etc/UTC | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
# Install dependencies | ||
## apt install python & libraries | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
python3 \ | ||
python3-pip \ | ||
libjpeg-dev \ | ||
zlib1g-dev \ | ||
libsdl2-dev \ | ||
git \ | ||
wget | ||
|
||
## install python dependencies | ||
COPY requirements.txt /tmp/ | ||
RUN pip3 install -r /tmp/requirements.txt | ||
|
||
## Windows build dependencies | ||
#RUN apt-get install -y \ | ||
# binutils-mingw-w64 | ||
#RUN apt-get install -y \ | ||
# tcc \ | ||
# unzip | ||
|
||
## Switch build dependencies | ||
### Install devkitpro for switch build | ||
#RUN wget https://apt.devkitpro.org/install-devkitpro-pacman && \ | ||
# chmod +x ./install-devkitpro-pacman && \ | ||
# sed -i 's/apt-get/apt-get -y /g' ./install-devkitpro-pacman && \ | ||
# ./install-devkitpro-pacman | ||
### Install switch development tools | ||
#RUN ln -s /proc/self/mounts /etc/mtab | ||
#RUN dkp-pacman --noconfirm -S switch-dev switch-sdl2 switch-tools | ||
|
||
RUN mkdir /zelda3 | ||
WORKDIR /zelda3 | ||
|
||
CMD echo 'usage: docker run --rm --mount type=bind,source="$(pwd)",destination=/zelda3 zelda3 make' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters