Skip to content

Commit

Permalink
more build refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacoby6000 committed Jul 24, 2024
1 parent f6fdf3a commit a988b90
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +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 clean && make -j8 package
RUN cd /projectroot && make clean && make -j8 dist


# Copy the DOL and ELF out of the container
FROM scratch AS export-stage
COPY --from=usbloader /projectroot/boot.* /
COPY --from=usbloader /projectroot/usbloader_gx /
COPY --from=usbloader /projectroot/usbloader_gx.zip /
COPY --from=usbloader /projectroot/usbloadergx_r*.zip /
17 changes: 12 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -180,17 +180,24 @@ clean:
package:
$(MAKE)
@echo Packaging...
@[ -d usbloader_gx ] || mkdir -p usbloader_gx
@cp $(TARGET).dol usbloader_gx/
@cp HBC/icon.png usbloader_gx/
@cp HBC/meta.xml usbloader_gx/
@zip usbloader_gx.zip usbloader_gx/*
@[ -d $(PROJECTDIR)/usbloader_gx ] || mkdir -p $(PROJECTDIR)/usbloader_gx
@cp $(TARGET).dol $(PROJECTDIR)/usbloader_gx/
@cp $(PROJECTDIR)/HBC/icon.png $(PROJECTDIR)/usbloader_gx/
@cp $(PROJECTDIR)/HBC/meta.xml $(PROJECTDIR)/usbloader_gx/

#---------------------------------------------------------------------------------
dist:
$(MAKE) package
@mkdir -p $(PROJECTDIR)/dist/apps
@cp -r $(PROJECTDIR)/usbloader_gx $(PROJECTDIR)/dist/apps/
@cd $(PROJECTDIR)/dist && zip "../usbloadergx_r`cat $(PROJECTDIR)/version.txt`" -r .

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

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

#---------------------------------------------------------------------------------
Expand Down

0 comments on commit a988b90

Please sign in to comment.