mirror of
https://github.com/wiiu-env/libgui.git
synced 2024-11-14 12:25:10 +01:00
Update the Dockerfile
This commit is contained in:
parent
cf34980be5
commit
61917ce2a4
25
Dockerfile
25
Dockerfile
@ -1,20 +1,9 @@
|
||||
FROM wiiulegacy/core:0.1
|
||||
|
||||
# Get dependencies
|
||||
COPY --from=wiiulegacy/dynamic_libs:0.1 /artifacts $DEVKITPRO/portlibs
|
||||
COPY --from=wiiulegacy/libutils:0.1 /artifacts $DEVKITPRO/portlibs
|
||||
|
||||
# Get latest libgui from git
|
||||
RUN git clone https://github.com/Maschell/libgui && cd libgui && git checkout v0.1
|
||||
WORKDIR libgui
|
||||
|
||||
# install other dependencies
|
||||
RUN dkp-pacman -Syyu --noconfirm ppc-zlib ppc-libmad ppc-libogg ppc-libgd ppc-freetype ppc-libjpeg-turbo ppc-libpng ppc-libvorbisidec ppc-glm ppc-bzip2
|
||||
|
||||
RUN make && \
|
||||
find $DEVKITPRO/portlibs -maxdepth 10 -type f -delete && \
|
||||
rm -rf $DEVKITPRO/portlibs/ppc/include && \
|
||||
make install && \
|
||||
cp -r ${DEVKITPRO}/portlibs /artifacts
|
||||
FROM wiiuenv/devkitppc:20200625
|
||||
|
||||
WORKDIR tmp_build
|
||||
COPY . .
|
||||
RUN make clean && make -j8 && mkdir -p /artifacts/wut/usr && cp -r lib /artifacts/wut/usr && cp -r include /artifacts/wut/usr
|
||||
WORKDIR /artifacts
|
||||
|
||||
FROM scratch
|
||||
COPY --from=0 /artifacts /artifacts
|
Loading…
Reference in New Issue
Block a user