From abf570795411d9fb768be12f0385cd8e8f260b6b Mon Sep 17 00:00:00 2001 From: elseif Date: Fri, 12 Jul 2024 08:25:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20patch.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- patch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/patch.py b/patch.py index 2655492..f34ca79 100644 --- a/patch.py +++ b/patch.py @@ -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}")