2018-12-28 20:07:44 -06:00
|
|
|
#! /usr/bin/env python# -*- coding: iso-8859-1 -*-
|
|
|
|
import shutil
|
|
|
|
import os
|
2018-12-29 09:09:15 -06:00
|
|
|
import sys
|
2018-12-28 20:07:44 -06:00
|
|
|
|
|
|
|
def create_archive():
|
|
|
|
os.chdir("..\\src")
|
2018-12-28 21:02:52 -06:00
|
|
|
print("Creating zip archive...")
|
2020-07-07 17:56:44 -05:00
|
|
|
folder = "dist"
|
2018-12-29 09:09:15 -06:00
|
|
|
shutil.make_archive("music_dl", "zip", folder)
|
2018-12-29 11:32:05 -06:00
|
|
|
# if os.path.exists("dist"):
|
|
|
|
# shutil.rmtree("dist")
|
2018-12-28 20:07:44 -06:00
|
|
|
if os.path.exists("build"):
|
|
|
|
shutil.rmtree("build")
|
|
|
|
os.chdir("..\\scripts")
|
|
|
|
|
|
|
|
create_archive()
|