From c549ba9e87c5d3ac48199f5e03ee1b68f23377cd Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Fri, 28 Dec 2018 20:07:44 -0600 Subject: [PATCH] Added new script to prepare musicDL's zip file --- scripts/prepare_zipversion.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 scripts/prepare_zipversion.py diff --git a/scripts/prepare_zipversion.py b/scripts/prepare_zipversion.py new file mode 100644 index 0000000..088b567 --- /dev/null +++ b/scripts/prepare_zipversion.py @@ -0,0 +1,15 @@ +#! /usr/bin/env python# -*- coding: iso-8859-1 -*- +import shutil +import os + +def create_archive(): + os.chdir("..\\src") + print "Creating zip archive..." + shutil.make_archive("socializer", "zip", "dist/main") + 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