From 511ebfa5a3507759c144b1e6eb3d8c7106eadb3d Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Mon, 5 Aug 2024 13:33:58 +0300 Subject: [PATCH] Exclude the unused translation files from the exported builds The pck is now almost 1MB smaller than it was in version 1.0. --- export_presets.cfg | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/export_presets.cfg b/export_presets.cfg index eb8e93a5b..6bcc9a9a4 100644 --- a/export_presets.cfg +++ b/export_presets.cfg @@ -5,7 +5,8 @@ platform="Linux/X11" runnable=true dedicated_server=false custom_features="" -export_filter="all_resources" +export_filter="exclude" +export_files=PackedStringArray("res://Translations/af_ZA.po", "res://Translations/ar_SA.po", "res://Translations/be_BY.po", "res://Translations/bg_BG.po", "res://Translations/ca_ES.po", "res://Translations/cy_GB.po", "res://Translations/en_PT.po", "res://Translations/et_EE.po", "res://Translations/fil_PH.po", "res://Translations/fi_FI.po", "res://Translations/ga_IE.po", "res://Translations/grc.po", "res://Translations/he_IL.po", "res://Translations/hi_IN.po", "res://Translations/hr_HR.po", "res://Translations/is_IS.po", "res://Translations/la_LA.po", "res://Translations/lt_LT.po", "res://Translations/mk_MK.po", "res://Translations/ml_IN.po", "res://Translations/mr_IN.po", "res://Translations/ms_MY.po", "res://Translations/no_NO.po", "res://Translations/nl_NL.po", "res://Translations/si_LK.po", "res://Translations/sk_SK.po", "res://Translations/sl_SI.po", "res://Translations/sq_AL.po", "res://Translations/sr_SP.po", "res://Translations/sv_SE.po", "res://Translations/sw_KE.po", "res://Translations/ta_IN.po", "res://Translations/th_TH.po", "res://Translations/tlh_AA.po", "res://Translations/vi_VN.po") include_filter="" exclude_filter="" export_path="" @@ -47,7 +48,8 @@ platform="Windows Desktop" runnable=true dedicated_server=false custom_features="" -export_filter="all_resources" +export_filter="exclude" +export_files=PackedStringArray("res://Translations/af_ZA.po", "res://Translations/ar_SA.po", "res://Translations/be_BY.po", "res://Translations/bg_BG.po", "res://Translations/ca_ES.po", "res://Translations/cy_GB.po", "res://Translations/en_PT.po", "res://Translations/et_EE.po", "res://Translations/fil_PH.po", "res://Translations/fi_FI.po", "res://Translations/ga_IE.po", "res://Translations/grc.po", "res://Translations/he_IL.po", "res://Translations/hi_IN.po", "res://Translations/hr_HR.po", "res://Translations/is_IS.po", "res://Translations/la_LA.po", "res://Translations/lt_LT.po", "res://Translations/mk_MK.po", "res://Translations/ml_IN.po", "res://Translations/mr_IN.po", "res://Translations/ms_MY.po", "res://Translations/no_NO.po", "res://Translations/nl_NL.po", "res://Translations/si_LK.po", "res://Translations/sk_SK.po", "res://Translations/sl_SI.po", "res://Translations/sq_AL.po", "res://Translations/sr_SP.po", "res://Translations/sv_SE.po", "res://Translations/sw_KE.po", "res://Translations/ta_IN.po", "res://Translations/th_TH.po", "res://Translations/tlh_AA.po", "res://Translations/vi_VN.po") include_filter="" exclude_filter="" export_path="" @@ -112,7 +114,8 @@ platform="Web" runnable=true dedicated_server=false custom_features="" -export_filter="all_resources" +export_filter="exclude" +export_files=PackedStringArray("res://Translations/af_ZA.po", "res://Translations/ar_SA.po", "res://Translations/be_BY.po", "res://Translations/bg_BG.po", "res://Translations/ca_ES.po", "res://Translations/cy_GB.po", "res://Translations/en_PT.po", "res://Translations/et_EE.po", "res://Translations/fil_PH.po", "res://Translations/fi_FI.po", "res://Translations/ga_IE.po", "res://Translations/grc.po", "res://Translations/he_IL.po", "res://Translations/hi_IN.po", "res://Translations/hr_HR.po", "res://Translations/is_IS.po", "res://Translations/la_LA.po", "res://Translations/lt_LT.po", "res://Translations/mk_MK.po", "res://Translations/ml_IN.po", "res://Translations/mr_IN.po", "res://Translations/ms_MY.po", "res://Translations/no_NO.po", "res://Translations/nl_NL.po", "res://Translations/si_LK.po", "res://Translations/sk_SK.po", "res://Translations/sl_SI.po", "res://Translations/sq_AL.po", "res://Translations/sr_SP.po", "res://Translations/sv_SE.po", "res://Translations/sw_KE.po", "res://Translations/ta_IN.po", "res://Translations/th_TH.po", "res://Translations/tlh_AA.po", "res://Translations/vi_VN.po") include_filter="" exclude_filter="" export_path="" @@ -150,7 +153,8 @@ platform="Windows Desktop" runnable=false dedicated_server=false custom_features="" -export_filter="all_resources" +export_filter="exclude" +export_files=PackedStringArray("res://Translations/af_ZA.po", "res://Translations/ar_SA.po", "res://Translations/be_BY.po", "res://Translations/bg_BG.po", "res://Translations/ca_ES.po", "res://Translations/cy_GB.po", "res://Translations/en_PT.po", "res://Translations/et_EE.po", "res://Translations/fil_PH.po", "res://Translations/fi_FI.po", "res://Translations/ga_IE.po", "res://Translations/grc.po", "res://Translations/he_IL.po", "res://Translations/hi_IN.po", "res://Translations/hr_HR.po", "res://Translations/is_IS.po", "res://Translations/la_LA.po", "res://Translations/lt_LT.po", "res://Translations/mk_MK.po", "res://Translations/ml_IN.po", "res://Translations/mr_IN.po", "res://Translations/ms_MY.po", "res://Translations/no_NO.po", "res://Translations/nl_NL.po", "res://Translations/si_LK.po", "res://Translations/sk_SK.po", "res://Translations/sl_SI.po", "res://Translations/sq_AL.po", "res://Translations/sr_SP.po", "res://Translations/sv_SE.po", "res://Translations/sw_KE.po", "res://Translations/ta_IN.po", "res://Translations/th_TH.po", "res://Translations/tlh_AA.po", "res://Translations/vi_VN.po") include_filter="" exclude_filter="" export_path="" @@ -215,7 +219,8 @@ platform="Linux/X11" runnable=false dedicated_server=false custom_features="" -export_filter="all_resources" +export_filter="exclude" +export_files=PackedStringArray("res://Translations/af_ZA.po", "res://Translations/ar_SA.po", "res://Translations/be_BY.po", "res://Translations/bg_BG.po", "res://Translations/ca_ES.po", "res://Translations/cy_GB.po", "res://Translations/en_PT.po", "res://Translations/et_EE.po", "res://Translations/fil_PH.po", "res://Translations/fi_FI.po", "res://Translations/ga_IE.po", "res://Translations/grc.po", "res://Translations/he_IL.po", "res://Translations/hi_IN.po", "res://Translations/hr_HR.po", "res://Translations/is_IS.po", "res://Translations/la_LA.po", "res://Translations/lt_LT.po", "res://Translations/mk_MK.po", "res://Translations/ml_IN.po", "res://Translations/mr_IN.po", "res://Translations/ms_MY.po", "res://Translations/no_NO.po", "res://Translations/nl_NL.po", "res://Translations/si_LK.po", "res://Translations/sk_SK.po", "res://Translations/sl_SI.po", "res://Translations/sq_AL.po", "res://Translations/sr_SP.po", "res://Translations/sv_SE.po", "res://Translations/sw_KE.po", "res://Translations/ta_IN.po", "res://Translations/th_TH.po", "res://Translations/tlh_AA.po", "res://Translations/vi_VN.po") include_filter="" exclude_filter="" export_path="" @@ -257,7 +262,8 @@ platform="Linux/X11" runnable=false dedicated_server=false custom_features="" -export_filter="all_resources" +export_filter="exclude" +export_files=PackedStringArray("res://Translations/af_ZA.po", "res://Translations/ar_SA.po", "res://Translations/be_BY.po", "res://Translations/bg_BG.po", "res://Translations/ca_ES.po", "res://Translations/cy_GB.po", "res://Translations/en_PT.po", "res://Translations/et_EE.po", "res://Translations/fil_PH.po", "res://Translations/fi_FI.po", "res://Translations/ga_IE.po", "res://Translations/grc.po", "res://Translations/he_IL.po", "res://Translations/hi_IN.po", "res://Translations/hr_HR.po", "res://Translations/is_IS.po", "res://Translations/la_LA.po", "res://Translations/lt_LT.po", "res://Translations/mk_MK.po", "res://Translations/ml_IN.po", "res://Translations/mr_IN.po", "res://Translations/ms_MY.po", "res://Translations/no_NO.po", "res://Translations/nl_NL.po", "res://Translations/si_LK.po", "res://Translations/sk_SK.po", "res://Translations/sl_SI.po", "res://Translations/sq_AL.po", "res://Translations/sr_SP.po", "res://Translations/sv_SE.po", "res://Translations/sw_KE.po", "res://Translations/ta_IN.po", "res://Translations/th_TH.po", "res://Translations/tlh_AA.po", "res://Translations/vi_VN.po") include_filter="" exclude_filter="" export_path="" @@ -299,7 +305,8 @@ platform="Linux/X11" runnable=false dedicated_server=false custom_features="" -export_filter="all_resources" +export_filter="exclude" +export_files=PackedStringArray("res://Translations/af_ZA.po", "res://Translations/ar_SA.po", "res://Translations/be_BY.po", "res://Translations/bg_BG.po", "res://Translations/ca_ES.po", "res://Translations/cy_GB.po", "res://Translations/en_PT.po", "res://Translations/et_EE.po", "res://Translations/fil_PH.po", "res://Translations/fi_FI.po", "res://Translations/ga_IE.po", "res://Translations/grc.po", "res://Translations/he_IL.po", "res://Translations/hi_IN.po", "res://Translations/hr_HR.po", "res://Translations/is_IS.po", "res://Translations/la_LA.po", "res://Translations/lt_LT.po", "res://Translations/mk_MK.po", "res://Translations/ml_IN.po", "res://Translations/mr_IN.po", "res://Translations/ms_MY.po", "res://Translations/no_NO.po", "res://Translations/nl_NL.po", "res://Translations/si_LK.po", "res://Translations/sk_SK.po", "res://Translations/sl_SI.po", "res://Translations/sq_AL.po", "res://Translations/sr_SP.po", "res://Translations/sv_SE.po", "res://Translations/sw_KE.po", "res://Translations/ta_IN.po", "res://Translations/th_TH.po", "res://Translations/tlh_AA.po", "res://Translations/vi_VN.po") include_filter="" exclude_filter="" export_path="" @@ -339,7 +346,8 @@ platform="macOS" runnable=true dedicated_server=false custom_features="" -export_filter="all_resources" +export_filter="exclude" +export_files=PackedStringArray("res://Translations/af_ZA.po", "res://Translations/ar_SA.po", "res://Translations/be_BY.po", "res://Translations/bg_BG.po", "res://Translations/ca_ES.po", "res://Translations/cy_GB.po", "res://Translations/en_PT.po", "res://Translations/et_EE.po", "res://Translations/fil_PH.po", "res://Translations/fi_FI.po", "res://Translations/ga_IE.po", "res://Translations/grc.po", "res://Translations/he_IL.po", "res://Translations/hi_IN.po", "res://Translations/hr_HR.po", "res://Translations/is_IS.po", "res://Translations/la_LA.po", "res://Translations/lt_LT.po", "res://Translations/mk_MK.po", "res://Translations/ml_IN.po", "res://Translations/mr_IN.po", "res://Translations/ms_MY.po", "res://Translations/no_NO.po", "res://Translations/nl_NL.po", "res://Translations/si_LK.po", "res://Translations/sk_SK.po", "res://Translations/sl_SI.po", "res://Translations/sq_AL.po", "res://Translations/sr_SP.po", "res://Translations/sv_SE.po", "res://Translations/sw_KE.po", "res://Translations/ta_IN.po", "res://Translations/th_TH.po", "res://Translations/tlh_AA.po", "res://Translations/vi_VN.po") include_filter="" exclude_filter="" export_path="" @@ -444,7 +452,8 @@ platform="Android" runnable=true dedicated_server=false custom_features="" -export_filter="all_resources" +export_filter="exclude" +export_files=PackedStringArray("res://Translations/af_ZA.po", "res://Translations/ar_SA.po", "res://Translations/be_BY.po", "res://Translations/bg_BG.po", "res://Translations/ca_ES.po", "res://Translations/cy_GB.po", "res://Translations/en_PT.po", "res://Translations/et_EE.po", "res://Translations/fil_PH.po", "res://Translations/fi_FI.po", "res://Translations/ga_IE.po", "res://Translations/grc.po", "res://Translations/he_IL.po", "res://Translations/hi_IN.po", "res://Translations/hr_HR.po", "res://Translations/is_IS.po", "res://Translations/la_LA.po", "res://Translations/lt_LT.po", "res://Translations/mk_MK.po", "res://Translations/ml_IN.po", "res://Translations/mr_IN.po", "res://Translations/ms_MY.po", "res://Translations/no_NO.po", "res://Translations/nl_NL.po", "res://Translations/si_LK.po", "res://Translations/sk_SK.po", "res://Translations/sl_SI.po", "res://Translations/sq_AL.po", "res://Translations/sr_SP.po", "res://Translations/sv_SE.po", "res://Translations/sw_KE.po", "res://Translations/ta_IN.po", "res://Translations/th_TH.po", "res://Translations/tlh_AA.po", "res://Translations/vi_VN.po") include_filter="" exclude_filter="" export_path=""