Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacoby6000 committed Jul 24, 2024
1 parent d5abde3 commit 3c185fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ usbloader_gx/
/source/svnrev.c
/usbloader_gx.zip
/wiiload
/output
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
FROM debian:buster as usbloader
ENV DEBIAN_FRONTEND="noninteractive" TZ="Europe/London"
RUN apt-get update -y && apt-get install -y \
xz-utils make git
xz-utils make git zip

ADD https://wii.leseratte10.de/devkitPro/file.php/devkitPPC-r41-2-linux_x86_64.pkg.tar.xz /
ADD https://wii.leseratte10.de/devkitPro/file.php/libogc-2.3.1-1-any.pkg.tar.xz /
Expand All @@ -31,9 +31,11 @@ ENV DEVKITPPC=/devkitpro/devkitPPC
# Now we have a container that has the dev environment set up.
# Copy current folder into container, then compile
COPY . /projectroot/
RUN cd /projectroot && make
RUN cd /projectroot && make clean && make -j8 package


# Copy the DOL and ELF out of the container
FROM scratch AS export-stage
COPY --from=usbloader /projectroot/boot.* /
COPY --from=usbloader /projectroot/boot.* /
COPY --from=usbloader /projectroot/usbloader_gx /
COPY --from=usbloader /projectroot/usbloader_gx.zip /
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,9 @@ package:
@zip usbloader_gx.zip usbloader_gx/*

#---------------------------------------------------------------------------------

deploy:
$(MAKE) package
$(MAKE) package
@echo Deploying...
wiiload usbloader_gx.zip

Expand Down

0 comments on commit 3c185fc

Please sign in to comment.