From a5ee30a534c701ef7be4011e3cf1422c64e05fc4 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sun, 11 Jun 2023 18:39:29 +0800 Subject: [PATCH] remove useless double zip --- .github/workflows/nuitka.yml | 8 -------- nuitka_build.py | 8 -------- 2 files changed, 16 deletions(-) diff --git a/.github/workflows/nuitka.yml b/.github/workflows/nuitka.yml index 80f7bdc..1d60444 100644 --- a/.github/workflows/nuitka.yml +++ b/.github/workflows/nuitka.yml @@ -102,11 +102,3 @@ jobs: name: Difficult-Rocket_v${{env.DR_version}}-${{runner.os}}${{matrix.python-version}}-Build.${{github.run_number}}+${{env.short_sha}}.zip path: | build/github/DR.dist - - # Uploads artifact - - name: Upload Artifact - uses: actions/upload-artifact@v3 - with: - name: Difficult-Rocket_v${{env.DR_version}}-${{runner.os}}${{matrix.python-version}}-Build.${{github.run_number}}+${{env.short_sha}}.zip.zip - path: | - build/Difficult_Rocket.zip diff --git a/nuitka_build.py b/nuitka_build.py index 8d30dcf..e52fde8 100644 --- a/nuitka_build.py +++ b/nuitka_build.py @@ -107,14 +107,6 @@ if __name__ == '__main__': except Exception: traceback.print_exc() print('Remove Useless Files Done!') - # 压缩 - with zipfile.ZipFile(Path('./build/Difficult_Rocket.zip'), 'w', zipfile.ZIP_DEFLATED, compresslevel=9) as dist_zip: - for path, sub_paths, sub_files in os.walk(compiler.output_path / 'DR.dist'): - print(f'writing {path}') - for file in sub_files: - file_path = os.path.join(path, file) - dist_zip.write(file_path) - print('Zip Done!') else: dist_dir_size = 0 dist_file_size: Dict[str, Tuple[int, float]] = {}