Skip to content

Commit b2ada0c

Browse files
committed
Add CPack support for Wii
1 parent 9fa0ca2 commit b2ada0c

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ jobs:
2323
2424
- name: Prepare artifact
2525
run: |
26-
cmake --install build/wii --verbose --prefix /tmp/artifact/Wii-Tac-Toe
27-
cp --verbose Wii-Tac-Toe/* /tmp/artifact/Wii-Tac-Toe/
26+
cmake --install build/wii --verbose --prefix /tmp/artifact
2827
2928
- uses: actions/upload-artifact@v4
3029
with:

CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,14 @@ target_link_libraries(Wii-Tac-Toe PRIVATE
8585
ogc_create_dol(Wii-Tac-Toe)
8686

8787
get_target_property(DOL_FILE Wii-Tac-Toe DKP_FILE)
88-
install(FILES "${DOL_FILE}" DESTINATION . RENAME "boot.dol")
88+
install(FILES "${DOL_FILE}" DESTINATION "Wii-Tac-Toe" RENAME "boot.dol")
89+
install(FILES
90+
"${CMAKE_CURRENT_SOURCE_DIR}/Wii-Tac-Toe/icon.png"
91+
"${CMAKE_CURRENT_SOURCE_DIR}/Wii-Tac-Toe/meta.xml"
92+
DESTINATION "Wii-Tac-Toe"
93+
)
94+
95+
set(CPACK_PACKAGE_NAME "wii-tac-toe")
96+
set(CPACK_GENERATOR "ZIP")
97+
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}")
98+
include(CPack)

CMakePresets.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@
4646
"configurePreset": "gamecube"
4747
}
4848
],
49+
"packagePresets": [
50+
{
51+
"name": "wii",
52+
"displayName": "Wii Package",
53+
"configurePreset": "wii",
54+
"generators": [
55+
"ZIP"
56+
]
57+
}
58+
],
4959
"workflowPresets": [
5060
{
5161
"name": "wiiu",

0 commit comments

Comments
 (0)