From 6c147b1ca86fd261f041f40176b3d03ff78a369e Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 21 Sep 2018 18:16:56 +0200 Subject: [PATCH] Add Dockerfile and readme --- Dockerfile | 14 ++++++++++++++ README.md | 8 ++++++++ 2 files changed, 22 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7539711 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM wiiulegacy/core:0.1 + +COPY --from=wiiulegacy/libiosuhax:0.3 /artifacts $DEVKITPRO/portlibs + +RUN git clone https://github.com/Maschell/libntfs-wiiu && cd libntfs-wiiu && git checkout v2013.1.13 +WORKDIR libntfs-wiiu + +RUN make wiiu-release && \ + find $DEVKITPRO/portlibs -maxdepth 3 -type f -delete && \ + make -C source wiiu-install PLATFORM=wiiu && \ + cp -r ${DEVKITPRO}/portlibs /artifacts + +WORKDIR /artifacts +RUN find . diff --git a/README.md b/README.md index a81b042..1c42e0b 100644 --- a/README.md +++ b/README.md @@ -10,3 +10,11 @@ Link the application with: To be able to use libntfs for the Wii u, you need to install the following dependencies: - [libiosuhax](https://github.com/dimok789/libiosuhax) + +# Use the prebuilt files from a Docker image. +The image `wiiulegacy/libntfs` on [Docker Hub](https://hub.docker.com/r/wiiulegacy/libntfs/) provides a prebuilt library in the `/artifacts` directory. Copy it into your DevkitPPC portlibs folder. + +Example: +``` +COPY --from=wiiulegacy/libntfs:2013.1.13 /artifacts $DEVKITPRO/portlibs +```