Skip to content

Commit 8e6a5cd

Browse files
committed
Added README, Dockerfile and gitignore
1 parent 085263d commit 8e6a5cd

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.vscode

Dockerfile

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
FROM gcc:latest
2+
LABEL version="0.1.0-alpha"
3+
LABEL vendor1="DanteyPL"
4+
5+
WORKDIR /build
6+
# Installation of devkitpro-pacman; Script from https://devkitpro.org/wiki/devkitPro_pacman#:~:text=pacman%20instructions%20below.-,Debian%20and%20derivatives,devkitpro%2Dpacman%0A%20%20%20chmod%20%2Bx%20./install%2Ddevkitpro%2Dpacman%0A%20%20%20sudo%20./install%2Ddevkitpro%2Dpacman,-The%20apt%20repository
7+
RUN wget https://apt.devkitpro.org/install-devkitpro-pacman
8+
RUN chmod +x ./install-devkitpro-pacman
9+
# Workaround for automation
10+
RUN sed -i -e 's/apt-get install/apt-get install -y/' ./install-devkitpro-pacman
11+
RUN eval ./install-devkitpro-pacman
12+
RUN ln -s /proc/self/mounts /etc/mtab
13+
# Installing required SDK for building
14+
RUN dkp-pacman --noconfirm -S 3ds-dev 3ds-curl
15+
# Exporting required variables to .bashrc to have persistence after reboot of container
16+
RUN echo "export DEVKITPRO=/opt/devkitpro" >> ~/.bashrc
17+
RUN echo "export DEVKITARM=/opt/devkitpro/devkitARM" >> ~/.bashrc
18+
RUN echo "export PATH=$PATH:/opt/devkitpro/devkitARM/bin" >> ~/.bashrc
19+
# Adding required enviroment variables
20+
ENV DEVKITPRO /opt/devkitpro
21+
ENV DEVKITARM /opt/devkitpro/devkitARM
22+
23+
RUN apt-get update && apt-get install -y \
24+
ffmpeg \
25+
python3 \
26+
python3-pip
27+
# Install Python requirements
28+
RUN pip install PyYAML --break-system-packages
29+
# Link pyton3 to python
30+
RUN ln -s $(which python3) /usr/bin/python
31+
32+
RUN wget https://github.com/3DSGuy/Project_CTR/releases/download/makerom-v0.18.4/makerom-v0.18.4-ubuntu_x86_64.zip
33+
RUN unzip makerom-v0.18.4-ubuntu_x86_64.zip -d $DEVKITPRO/tools/bin/
34+
RUN chmod +x $DEVKITPRO/tools/bin/makerom
35+
36+
RUN wget https://github.com/diasurgical/bannertool/releases/download/1.2.0/bannertool.zip
37+
RUN unzip bannertool.zip -d ./
38+
RUN cp ./linux-x86_64/bannertool $DEVKITPRO/tools/bin/
39+
40+
WORKDIR /build/source
41+
# ENTRYPOINT [ "/bin/bash" ]
42+
ENTRYPOINT [ "make" ]
43+
CMD [ "clean", "codegen", ";","make","cia" ]

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ Example:
2222
docker run --rm -v ./:/build/source -u $(id -u):$(id -g) -ti netpass_builder clean
2323
```
2424
This will run command `make clean` overriding default arguments
25+
26+
# Afterword
27+
For now it was created as Proof of Concept and can be changed in the future to being more universal.

0 commit comments

Comments
 (0)