From ae9dbd837d2e48a0c426c1655af71fe131af77e7 Mon Sep 17 00:00:00 2001 From: GabsPuNs <90851039+GabsPuNs@users.noreply.github.com> Date: Mon, 13 Apr 2026 00:48:43 -0500 Subject: [PATCH] Exclude more files, reduce build .zip size (#1374) --- Minecraft.Client/CMakeLists.txt | 2 -- Minecraft.Client/cmake/sources/Windows.cmake | 8 -------- cmake/CopyAssets.cmake | 5 ++++- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/Minecraft.Client/CMakeLists.txt b/Minecraft.Client/CMakeLists.txt index abe39f18..fdd0bda9 100644 --- a/Minecraft.Client/CMakeLists.txt +++ b/Minecraft.Client/CMakeLists.txt @@ -82,8 +82,6 @@ set(ASSET_FOLDER_PAIRS "${CMAKE_CURRENT_SOURCE_DIR}/music" "music" "${CMAKE_CURRENT_SOURCE_DIR}/Common/Media" "Common/Media" "${CMAKE_CURRENT_SOURCE_DIR}/Common/res" "Common/res" - "${CMAKE_CURRENT_SOURCE_DIR}/Common/Trial" "Common/Trial" - "${CMAKE_CURRENT_SOURCE_DIR}/Common/Tutorial" "Common/Tutorial" "${CMAKE_CURRENT_SOURCE_DIR}/${PLATFORM_NAME}Media" "${PLATFORM_NAME}Media" ) setup_asset_folder_copy(Minecraft.Client "${ASSET_FOLDER_PAIRS}") diff --git a/Minecraft.Client/cmake/sources/Windows.cmake b/Minecraft.Client/cmake/sources/Windows.cmake index 046075f9..a7c860b1 100644 --- a/Minecraft.Client/cmake/sources/Windows.cmake +++ b/Minecraft.Client/cmake/sources/Windows.cmake @@ -1,12 +1,5 @@ set(BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Windows64/") -set(_MINECRAFT_CLIENT_WINDOWS_COMMON_RES_AUDIO - "${CMAKE_CURRENT_SOURCE_DIR}/Common/res/audio/minecraft.xsb" - "${CMAKE_CURRENT_SOURCE_DIR}/Common/res/audio/resident.xwb" - "${CMAKE_CURRENT_SOURCE_DIR}/Common/res/audio/streamed.xwb" -) -source_group("Common/res/audio" FILES ${_MINECRAFT_CLIENT_WINDOWS_COMMON_RES_AUDIO}) - set(_MINECRAFT_CLIENT_WINDOWS_COMMON_AUDIO "${CMAKE_CURRENT_SOURCE_DIR}/Common/Audio/SoundEngine.cpp" ) @@ -472,7 +465,6 @@ set(_MINECRAFT_CLIENT_WINDOWS_NET_MINECRAFT_STATS source_group("net/minecraft/stats" FILES ${_MINECRAFT_CLIENT_WINDOWS_NET_MINECRAFT_STATS}) set(MINECRAFT_CLIENT_WINDOWS - ${_MINECRAFT_CLIENT_WINDOWS_COMMON_RES_AUDIO} ${_MINECRAFT_CLIENT_WINDOWS_COMMON_AUDIO} ${_MINECRAFT_CLIENT_WINDOWS_COMMON_NETWORK} ${_MINECRAFT_CLIENT_WINDOWS_COMMON_UI} diff --git a/cmake/CopyAssets.cmake b/cmake/CopyAssets.cmake index a78c9170..3090265e 100644 --- a/cmake/CopyAssets.cmake +++ b/cmake/CopyAssets.cmake @@ -10,12 +10,15 @@ function(setup_asset_folder_copy TARGET_NAME ASSET_FOLDER_PAIRS) "*.swf" # These are built into the .arc "*.resx" "*.loc" "*.wav" # Unsupported audio format - "*.xui" + "*.xui" "*.xgs" + "*.xwb" "*.xsb" + "*.xap" "*.xzp" ) # Global folder exclusions applied to every folder copy set(ASSET_EXCLUDE_FOLDERS "Graphics" + "Gamerules" ) # Exclude platform-specific arc media files