2018-12-16 17:30:31 -06:00
|
|
|
#! /usr/bin/env python# -*- coding: iso-8859-1 -*-
|
|
|
|
import shutil
|
|
|
|
import os
|
2019-01-01 20:56:12 -06:00
|
|
|
import sys
|
2018-12-16 17:30:31 -06:00
|
|
|
|
|
|
|
def create_archive():
|
|
|
|
os.chdir("..\\src")
|
2019-01-01 20:56:12 -06:00
|
|
|
print("Creating zip archive...")
|
2021-12-14 15:27:02 -06:00
|
|
|
folder = "socializer.dist"
|
2019-01-01 20:56:12 -06:00
|
|
|
shutil.make_archive("socializer", "zip", folder)
|
|
|
|
# if os.path.exists("dist"):
|
|
|
|
# shutil.rmtree("dist")
|
2018-12-18 03:53:13 -06:00
|
|
|
if os.path.exists("build"):
|
|
|
|
shutil.rmtree("build")
|
|
|
|
os.chdir("..\\scripts")
|
2018-12-16 17:30:31 -06:00
|
|
|
|
|
|
|
create_archive()
|