Skip to content

Commit c157c19

Browse files
committed
fixed build system
1 parent 78ad6dc commit c157c19

File tree

2 files changed

+26
-7
lines changed

2 files changed

+26
-7
lines changed

Dockerfile

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
FROM debian:12
22
LABEL version="0.2.4-alpha"
33
LABEL vendor1="DanteyPL"
4+
5+
LABEL org.opencontainers.image.licenses="GPL-3.0"
6+
LABEL org.opencontainers.image.source="https://github.com/introkun/netpass-docker-builder"
7+
LABEL org.opencontainers.image.version="0.2.4-alpha-fork1"
8+
LABEL vendor2="introkun"
9+
410
ARG DEBIAN_FRONTEND=noninteractive
511
# Install required packages to install dkp
612
RUN apt-get update && apt-get install -y \
@@ -21,28 +27,34 @@ RUN echo "export DEVKITPRO=/opt/devkitpro" >> ~/.bashrc \
2127
&& echo "export DEVKITARM=/opt/devkitpro/devkitARM" >> ~/.bashrc \
2228
&& echo "export PATH=$PATH:/opt/devkitpro/devkitARM/bin" >> ~/.bashrc
2329
# Adding required enviroment variables
24-
ENV DEVKITPRO /opt/devkitpro
25-
ENV DEVKITARM /opt/devkitpro/devkitARM
30+
ENV DEVKITPRO=/opt/devkitpro
31+
ENV DEVKITARM=/opt/devkitpro/devkitARM
32+
ENV PATH="$PATH:/opt/devkitpro/devkitARM/bin"
2633
# Install netpass packages dependencies
2734
RUN apt-get update && apt-get --no-install-recommends install -y \
2835
ffmpeg \
36+
git \
2937
python3 \
3038
python3-pip
3139
# Install Python requirements
3240
RUN pip install PyYAML --break-system-packages
33-
# Link pyton3 to python
41+
# Link python3 to python
3442
RUN ln -s $(which python3) /usr/bin/python
3543

3644
RUN wget https://github.com/3DSGuy/Project_CTR/releases/download/makerom-v0.18.4/makerom-v0.18.4-ubuntu_x86_64.zip
3745
RUN unzip makerom-v0.18.4-ubuntu_x86_64.zip -d $DEVKITPRO/tools/bin/
38-
RUN chmod +x $DEVKITPRO/tools/bin/makerom
46+
RUN chmod +x $DEVKITPRO/tools/bin/makerom
3947

4048
RUN wget https://github.com/diasurgical/bannertool/releases/download/1.2.0/bannertool.zip
4149
RUN unzip bannertool.zip -d ./
4250
RUN cp ./linux-x86_64/bannertool $DEVKITPRO/tools/bin/
4351

4452
COPY ./docker-entrypoint.sh ./
53+
4554
# Clean package cache and list
4655
RUN rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
56+
RUN rm makerom-v0.18.4-ubuntu_x86_64.zip bannertool.zip
57+
4758
WORKDIR /build/source
59+
RUN chmod +x /build/docker-entrypoint.sh
4860
ENTRYPOINT [ "/build/docker-entrypoint.sh" ]

docker-entrypoint.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
#!/bin/bash
2+
set -e
23

3-
if [[ $# -eq 0 ]];then
4+
if [[ $# -eq 0 ]]; then
45
make clean cia
56
else
67
# shellcheck disable=SC2068
7-
make $@
8-
fi
8+
make "$@"
9+
fi
10+
11+
# After build, copy output files to /output
12+
mkdir -p /output
13+
14+
cp -v out/*.3dsx /output/ 2>/dev/null || true
15+
cp -v out/*.cia /output/ 2>/dev/null || true

0 commit comments

Comments
 (0)