File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -383,6 +383,7 @@ def copy_native_binaries(
383383 if dest_component_dir .exists ():
384384 shutil .rmtree (dest_component_dir )
385385 shutil .copytree (src_component_dir , dest_component_dir )
386+ ensure_executable_files (dest_component_dir )
386387
387388 if target_filter is not None :
388389 missing_targets = sorted (target_filter - copied_targets )
@@ -391,6 +392,15 @@ def copy_native_binaries(
391392 raise RuntimeError (f"Missing target directories in vendor source: { missing_list } " )
392393
393394
395+ def ensure_executable_files (root : Path ) -> None :
396+ for path in root .rglob ("*" ):
397+ if not path .is_file ():
398+ continue
399+
400+ current_mode = path .stat ().st_mode
401+ path .chmod (current_mode | 0o111 )
402+
403+
394404def run_npm_pack (staging_dir : Path , output_path : Path ) -> Path :
395405 output_path = output_path .resolve ()
396406 output_path .parent .mkdir (parents = True , exist_ok = True )
You can’t perform that action at this time.
0 commit comments