From 9e6593a2106dafa0481d93a777428ce57927115e Mon Sep 17 00:00:00 2001 From: "@ran-zhao-yu" Date: Mon, 6 Jan 2025 14:07:58 +0800 Subject: [PATCH] jsoncpp install script Signed-off-by: @ran-zhao-yu --- install.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/install.py b/install.py index 6bdff88..6f542c8 100755 --- a/install.py +++ b/install.py @@ -83,9 +83,11 @@ def main(): libpng_path.add_argument('--source-file', help='jsoncpp source compressed dir') args = libpng_path.parse_args() tar_file_path = os.path.join(args.source_file, "jsoncpp-1.9.5.tar.gz") - target_dir = os.path.join(args.gen_dir, "jsoncpp-1.9.5") - untar_file(tar_file_path, target_dir, args) - do_patch(args, target_dir) + tmp_dir = os.path.join(THIS_FILE_PATH, "jsoncpp-1.9.5") + untar_file(tar_file_path, tmp_dir, THIS_FILE_PATH) + do_patch(args, tmp_dir) + do_copy(tmp_dir, args.gen_dir) + do_remove(tmp_dir) return 0