From 33f7ad547f7f638fdf2f871d115c366fcbb26e97 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Mon, 6 Sep 2021 14:45:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4package=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: a1012112796 <1012112796@qq.com> --- sharelib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sharelib.py b/sharelib.py index fe39621..64a7ff5 100644 --- a/sharelib.py +++ b/sharelib.py @@ -233,8 +233,8 @@ class SharelibHandler: 'lib_name': self._lib_name} import json with open(dist_path + '/package.json','w+') as f: - json.dump(data,f) - + json.dump(data,f, sort_keys=True, indent=4, separators=(',', ': ')) + self.__gen_ports(share_lib_path) self.update_sharelib(share_lib_path)