From 929250523bc17ca95bad3efe024aa2ae3c9a6521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Sat, 26 Mar 2016 02:31:06 -0600 Subject: [PATCH] Compress nightly build in a zip file --- nightly/make_zipversion.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 nightly/make_zipversion.py diff --git a/nightly/make_zipversion.py b/nightly/make_zipversion.py new file mode 100644 index 0000000..817d03e --- /dev/null +++ b/nightly/make_zipversion.py @@ -0,0 +1,14 @@ +#! /usr/bin/env python# -*- coding: iso-8859-1 -*- +import shutil + +def create_build(): + os.chdir("../src") + print "Current path is {0}".format(os.getcwd()) + subprocess.call(["C:\python27x86\python.exe", "setup.py", "py2exe"]) + +def create_archive(): + print "Creating zip archive..." + shutil.make_archive("socializer-nightly-build", "zip", "socializer") + shutil.rmtree("socializer") + +create_archive() \ No newline at end of file