From e0a3b6db70caa620d8cae707a9d6b1131eeaa322 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Tue, 19 Nov 2019 17:41:09 -0600 Subject: [PATCH] Created a version that would zip the version generated with cx_freeze --- scripts/prepare_zipversion_cxfreeze.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 scripts/prepare_zipversion_cxfreeze.py diff --git a/scripts/prepare_zipversion_cxfreeze.py b/scripts/prepare_zipversion_cxfreeze.py new file mode 100644 index 0000000..4945707 --- /dev/null +++ b/scripts/prepare_zipversion_cxfreeze.py @@ -0,0 +1,17 @@ +#! /usr/bin/env python# -*- coding: iso-8859-1 -*- +import shutil +import os +import sys + +def create_archive(): + os.chdir("..\\src") + print("Creating zip archive...") + folder = "dist" + shutil.make_archive("socializer", "zip", folder) +# if os.path.exists("dist"): +# shutil.rmtree("dist") + if os.path.exists("build"): + shutil.rmtree("build") + os.chdir("..\\scripts") + +create_archive() \ No newline at end of file