Skip to content

Commit

Permalink
Fix Dockerfile/CI workflow and add optional .wua output
Browse files Browse the repository at this point in the history
  • Loading branch information
Crementif committed Mar 23, 2024
1 parent 9290dad commit edd6325
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 30 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ jobs:
with:
name: binary
path: "*.rpx"
- uses: actions/upload-artifact@master
with:
name: binary
path: "*.wuhb"
- uses: actions/upload-artifact@master
with:
name: binary
path: "*.elf"
deploy-binary:
needs: build-binary
runs-on: ubuntu-18.04
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ config.properties
/cemu
dumpling.wuhb
dumpling.rpx
dumpling.wua
dumpling.elf

source/cfw/ios_kernel/build/
Expand Down
4 changes: 3 additions & 1 deletion .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions .idea/runConfigurations/Run_Using_Cemu.xml

This file was deleted.

4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM wiiuenv/devkitppc:20220917 AS final
FROM ghcr.io/wiiu-env/devkitppc:20231112 AS final

COPY --from=wiiuenv/libmocha:20220919112600f3c45c /artifacts $DEVKITPRO
COPY --from=ghcr.io/wiiu-env/libmocha:20231127 /artifacts $DEVKITPRO

RUN apt update && apt -y install xxd

Expand Down
28 changes: 19 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ SOURCES := source/app \
DATA := data
INCLUDES := include
CONTENT :=
ICON := assets/dumpling-icon.png
TV_SPLASH := assets/dumpling-tv-boot.png
DRC_SPLASH := assets/dumpling-drc-boot.png
ICON := dist/dumpling-icon.png
TV_SPLASH := dist/dumpling-tv-boot.png
DRC_SPLASH := dist/dumpling-drc-boot.png

#-------------------------------------------------------------------------------
# options for code generation
Expand Down Expand Up @@ -159,7 +159,7 @@ else ifneq (,$(wildcard $(TOPDIR)/splash.png))
export APP_DRC_SPLASH := $(TOPDIR)/splash.png
endif

.PHONY: $(BUILD) debug discimg clean dist all
.PHONY: $(BUILD) debug discimg reusediscimage clean dist all

#-------------------------------------------------------------------------------
all: $(BUILD)
Expand All @@ -185,14 +185,14 @@ discimg:
@echo Recreated fatfs disk image!
@$(MAKE) USE_DEBUG_STUBS=1 USE_RAMDISK=1 -f $(CURDIR)/Makefile

withoutdiscimg:
reusediscimage:
@$(shell [ -d $(BUILD) ] || mkdir -p $(BUILD))
@$(MAKE) USE_DEBUG_STUBS=1 USE_RAMDISK=1 -f $(CURDIR)/Makefile

#-------------------------------------------------------------------------------
clean:
@echo Clean files from app...
@rm -fr $(BUILD) $(TARGET).wuhb $(TARGET).rpx $(TARGET).elf
@rm -fr $(BUILD) $(TARGET).wuhb $(TARGET).rpx $(TARGET).wua $(TARGET).elf
@$(MAKE) clean -C $(CURDIR)/source/cfw/ios_kernel
@$(MAKE) clean -C $(CURDIR)/source/cfw/ios_fs
@$(MAKE) clean -C $(CURDIR)/source/cfw/ios_mcp
Expand All @@ -203,8 +203,8 @@ dist:
@echo Making dist folder
@mkdir -p dist/wiiu/apps/dumpling
@echo Put latest files into it
@cp assets/meta.xml dist/wiiu/apps/dumpling/meta.xml
@cp assets/dumpling-banner.png dist/wiiu/apps/dumpling/icon.png
@cp dist/meta.xml dist/wiiu/apps/dumpling/meta.xml
@cp dist/dumpling-banner.png dist/wiiu/apps/dumpling/icon.png
@cp $(TARGET).rpx dist/wiiu/apps/dumpling/$(TARGET).rpx
@cp $(TARGET).wuhb dist/wiiu/apps/dumpling/$(TARGET).wuhb
@echo Zip up a release zip
Expand All @@ -221,9 +221,19 @@ DEPENDS := $(OFILES:.o=.d)
#-------------------------------------------------------------------------------
# main targets
#-------------------------------------------------------------------------------
all: $(OUTPUT).wuhb
all: $(OUTPUT).wuhb $(OUTPUT).wua

$(OUTPUT).wuhb : $(OUTPUT).rpx
$(OUTPUT).wua : $(OUTPUT).rpx
@echo Creating wua...
@cp $(OUTPUT).rpx $(TOPDIR)/dist/wua/00050000103b3b3b_v0/code/dumpling.rpx
@#rm -rf $(TOPDIR)/dist/wua/00050000103b3b3b_v0/content/
@#mkdir $(TOPDIR)/dist/wua/00050000103b3b3b_v0/content/
@#cp -r $(TOPDIR)/$(CONTENT)/. $(TOPDIR)/dist/wua/00050000103b3b3b_v0/content/
@rm -f $(OUTPUT).wua
@# Allow zarchive.exe to fail since on native Linux it will fail
@$(TOPDIR)/dist/zarchive.exe $(shell wslpath -m $(TOPDIR)/dist/wua || echo $(TOPDIR)/dist/wua) $(shell wslpath -m $(OUTPUT).wua || echo $(OUTPUT).wua) || echo "zarchive.exe couldn't be executed, skipping wua creation..."
@echo built ... sand.wua
$(OUTPUT).rpx : $(OUTPUT).elf
$(OUTPUT).elf : $(OFILES)

Expand Down
Binary file removed assets/dumpling-banner.png
Binary file not shown.
Binary file removed assets/dumpling-drc-boot.png
Binary file not shown.
Binary file removed assets/dumpling-icon.png
Binary file not shown.
Binary file removed assets/dumpling-logo.png
Binary file not shown.
Binary file removed assets/dumpling-tv-boot.png
Binary file not shown.
9 changes: 0 additions & 9 deletions assets/meta.xml

This file was deleted.

4 changes: 2 additions & 2 deletions source/app/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void showLoadingScreen() {
WHBLogFreetypeSetBackgroundColor(0x0b5d5e00);
WHBLogFreetypeSetFontColor(0xFFFFFFFF);
WHBLogFreetypeSetFontSize(22);
WHBLogPrint("Dumpling V2.6.4");
WHBLogPrint("Dumpling V2.7.0");
WHBLogPrint("-- Made by Crementif and Emiyl --");
WHBLogPrint("");
WHBLogFreetypeDraw();
Expand All @@ -31,7 +31,7 @@ void showMainMenu() {
while(!startSelectedOption) {
// Print menu text
WHBLogFreetypeStartScreen();
WHBLogFreetypePrint(L"Dumpling V2.6.4");
WHBLogFreetypePrint(L"Dumpling V2.7.0");
WHBLogFreetypePrint(L"===============================");
WHBLogFreetypePrintf(L"%C Dump a game disc", OPTION(0));
WHBLogFreetypePrintf(L"%C Dump digital games", OPTION(1));
Expand Down

0 comments on commit edd6325

Please sign in to comment.