diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8cfcee3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM wiiuenv/devkitppc:20200625 + +COPY --from=wiiuenv/libkernel:20200627 /artifacts $DEVKITPRO +COPY --from=wiiuenv/libfunctionpatcher:20200626 /artifacts $DEVKITPRO +COPY --from=wiiuenv/wiiumodulesystem:20200626 /artifacts $DEVKITPRO + +WORKDIR project \ No newline at end of file diff --git a/README.md b/README.md index 85e0083..603dc7e 100644 --- a/README.md +++ b/README.md @@ -1 +1,16 @@ Run via [SetupPayload](https://github.com/wiiu-env/SetupPayload). Requires [wut](https://github.com/decaf-emu/wut), [wums](https://github.com/wiiu-env/WiiUModuleSystem), [libkernel](https://github.com/wiiu-env/libkernel) and [libfunctionpatcher](https://github.com/wiiu-env/libfunctionpatcher) for building. + +## Building using the Dockerfile + +It's possible to use a docker image for building. This way you don't need anything installed on your host system. + +``` +# Build docker image (only needed once) +docker build . -t functionpatchermodule-builder + +# make +docker run -it --rm -v ${PWD}:/project functionpatchermodule-builder make + +# make clean +docker run -it --rm -v ${PWD}:/project functionpatchermodule-builder make clean +``` \ No newline at end of file