@@ -61,8 +61,11 @@ def snapshot_bundle_variant_after_pack(
6161
6262 manifest_dest = bundle_staging_root / MOD_MANIFEST_NAME
6363 if compat_target == latest_compat or not manifest_dest .is_file ():
64- obj_dir = ritsulib_root / GODOT_MONO_OBJ_PREFIX / configuration
65- gen = obj_dir / "mod_manifest.generated.json"
64+ gen = generated_manifest_path (
65+ ritsulib_root ,
66+ configuration = configuration ,
67+ compat_target = compat_target ,
68+ )
6669 if gen .is_file ():
6770 shutil .copy2 (gen , manifest_dest )
6871 copy_viewer_dist_to (bundle_staging_root , ritsulib_root = ritsulib_root )
@@ -503,11 +506,14 @@ def create_github_zip(
503506) -> Path :
504507 output_dir .mkdir (parents = True , exist_ok = True )
505508 out_bin = ritsulib_root / GODOT_MONO_BIN_PREFIX / configuration
506- out_obj = ritsulib_root / GODOT_MONO_OBJ_PREFIX / configuration
507509 dll_path = out_bin / ritsulib_built_dll_name ()
508510 doc_xml_path = out_bin / ritsulib_built_doc_xml_name ()
509511 pdb_path = out_bin / ritsulib_built_pdb_name ()
510- manifest_generated = out_obj / "mod_manifest.generated.json"
512+ manifest_generated = generated_manifest_path (
513+ ritsulib_root ,
514+ configuration = configuration ,
515+ compat_target = compat_target ,
516+ )
511517 manifest_path = manifest_generated if manifest_generated .is_file () else (ritsulib_root / MOD_MANIFEST_NAME )
512518 if not dll_path .is_file ():
513519 msg = f"Could not find built DLL for zip packaging: { dll_path } "
@@ -535,6 +541,19 @@ def create_github_zip(
535541 return zip_path
536542
537543
544+ def generated_manifest_path (
545+ ritsulib_root : Path ,
546+ * ,
547+ configuration : str ,
548+ compat_target : str ,
549+ ) -> Path :
550+ obj_root = ritsulib_root / GODOT_MONO_OBJ_PREFIX / configuration
551+ compat_manifest = obj_root / compat_target / "mod_manifest.generated.json"
552+ if compat_manifest .is_file ():
553+ return compat_manifest
554+ return obj_root / "mod_manifest.generated.json"
555+
556+
538557def run_push (package : Path , * , source : str , api_key : str ) -> None :
539558 subprocess .run (
540559 [
0 commit comments