更新 patch.py

This commit is contained in:
elseif 2024-07-12 08:25:44 +08:00 committed by GitHub
parent 37a3b1f529
commit abf5707954
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -139,6 +139,7 @@ def patch_npk_file(key_dict,kcdsa_private_key,eddsa_private_key,input_file,outpu
print(stderr.decode())
patch_squashfs(extract_dir,key_dict)
stdout, stderr = run_shell_command(f"file {os.path.join(extract_dir,'sbin/sysinit')}")
print(stdout.decode())
keygen = os.path.join(extract_dir,'bin/keygen')
if 'x86-64' in stdout.decode():
run_shell_command(f"sudo cp keygen/keygen_x86_64 {keygen}")