From f045c44040cd3d212b94acf4c922fb57028d43ca Mon Sep 17 00:00:00 2001 From: archibate <1931127624@qq.com> Date: Wed, 24 Aug 2022 14:05:43 +0800 Subject: [PATCH] [release] ignore exit code 1 --- misc/ci/package.py | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/misc/ci/package.py b/misc/ci/package.py index 2933cbdb88..2e34dd2308 100644 --- a/misc/ci/package.py +++ b/misc/ci/package.py @@ -53,14 +53,20 @@ for target in os.listdir(binpath): if 'so' in target.split('.'): shutil.move(os.path.join(binpath, target), os.path.join(outpath, 'usr', 'lib', target)) - subprocess.check_call([ - '../linuxdeployqt', - os.path.join(outpath, 'usr', 'share', 'applications', 'zeno.desktop'), - #'-executable=' + os.path.join(outpath, 'usr', 'bin', 'zenorunner'), - '-bundle-non-qt-libs', - # '-unsupported-allow-new-glibc', - '-unsupported-bundle-everything', - ]) + try: + subprocess.check_call([ + '../linuxdeployqt', + os.path.join(outpath, 'usr', 'share', 'applications', 'zeno.desktop'), + #'-executable=' + os.path.join(outpath, 'usr', 'bin', 'zenorunner'), + '-bundle-non-qt-libs', + # '-unsupported-allow-new-glibc', + '-unsupported-bundle-everything', + ]) + except subprocess.CalledProcessError as e: + if e.returncode != 1: + raise e from e + else: + print('ignored exit code 1 due to -unsupported flags') subprocess.check_call([ 'chmod', '+x',