Exclude more files, reduce build .zip size (#1374)

* Fix Sign

* Exclude more files from the compilation.

* Remove Trial and Tutorial folder in Common, Tutorial world is in windows64media
This commit is contained in:
GabsPuNs 2026-04-13 00:17:21 -04:00 committed by GitHub
parent 050c501786
commit bfcb621808
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 11 deletions

View file

@ -81,8 +81,6 @@ set(ASSET_FOLDER_PAIRS
"${CMAKE_CURRENT_SOURCE_DIR}/music" "music" "${CMAKE_CURRENT_SOURCE_DIR}/music" "music"
"${CMAKE_CURRENT_SOURCE_DIR}/Common/Media" "Common/Media" "${CMAKE_CURRENT_SOURCE_DIR}/Common/Media" "Common/Media"
"${CMAKE_CURRENT_SOURCE_DIR}/Common/res" "Common/res" "${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" "${CMAKE_CURRENT_SOURCE_DIR}/${PLATFORM_NAME}Media" "${PLATFORM_NAME}Media"
) )
setup_asset_folder_copy(Minecraft.Client "${ASSET_FOLDER_PAIRS}") setup_asset_folder_copy(Minecraft.Client "${ASSET_FOLDER_PAIRS}")

View file

@ -1,12 +1,5 @@
set(BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Windows64/") 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 set(_MINECRAFT_CLIENT_WINDOWS_COMMON_AUDIO
"${CMAKE_CURRENT_SOURCE_DIR}/Common/Audio/SoundEngine.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/Common/Audio/SoundEngine.cpp"
) )
@ -470,7 +463,6 @@ set(_MINECRAFT_CLIENT_WINDOWS_NET_MINECRAFT_STATS
source_group("net/minecraft/stats" FILES ${_MINECRAFT_CLIENT_WINDOWS_NET_MINECRAFT_STATS}) source_group("net/minecraft/stats" FILES ${_MINECRAFT_CLIENT_WINDOWS_NET_MINECRAFT_STATS})
set(MINECRAFT_CLIENT_WINDOWS set(MINECRAFT_CLIENT_WINDOWS
${_MINECRAFT_CLIENT_WINDOWS_COMMON_RES_AUDIO}
${_MINECRAFT_CLIENT_WINDOWS_COMMON_AUDIO} ${_MINECRAFT_CLIENT_WINDOWS_COMMON_AUDIO}
${_MINECRAFT_CLIENT_WINDOWS_COMMON_NETWORK} ${_MINECRAFT_CLIENT_WINDOWS_COMMON_NETWORK}
${_MINECRAFT_CLIENT_WINDOWS_COMMON_UI} ${_MINECRAFT_CLIENT_WINDOWS_COMMON_UI}

View file

@ -10,12 +10,15 @@ function(setup_asset_folder_copy TARGET_NAME ASSET_FOLDER_PAIRS)
"*.swf" # These are built into the .arc "*.swf" # These are built into the .arc
"*.resx" "*.loc" "*.resx" "*.loc"
"*.wav" # Unsupported audio format "*.wav" # Unsupported audio format
"*.xui" "*.xui" "*.xgs"
"*.xwb" "*.xsb"
"*.xap" "*.xzp"
) )
# Global folder exclusions applied to every folder copy # Global folder exclusions applied to every folder copy
set(ASSET_EXCLUDE_FOLDERS set(ASSET_EXCLUDE_FOLDERS
"Graphics" "Graphics"
"Gamerules"
) )
# Exclude platform-specific arc media files # Exclude platform-specific arc media files