Added new script to prepare musicDL's zip file

This commit is contained in:
Manuel Cortez 2018-12-28 20:07:44 -06:00
parent 130fb40d78
commit c549ba9e87

View File

@ -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()