Created a version that would zip the version generated with cx_freeze
This commit is contained in:
parent
c860834f17
commit
e0a3b6db70
17
scripts/prepare_zipversion_cxfreeze.py
Normal file
17
scripts/prepare_zipversion_cxfreeze.py
Normal file
@ -0,0 +1,17 @@
|
||||
#! /usr/bin/env python# -*- coding: iso-8859-1 -*-
|
||||
import shutil
|
||||
import os
|
||||
import sys
|
||||
|
||||
def create_archive():
|
||||
os.chdir("..\\src")
|
||||
print("Creating zip archive...")
|
||||
folder = "dist"
|
||||
shutil.make_archive("socializer", "zip", folder)
|
||||
# if os.path.exists("dist"):
|
||||
# shutil.rmtree("dist")
|
||||
if os.path.exists("build"):
|
||||
shutil.rmtree("build")
|
||||
os.chdir("..\\scripts")
|
||||
|
||||
create_archive()
|
Loading…
Reference in New Issue
Block a user