diff --git a/build.py b/build.py index ca74144..0313ef8 100644 --- a/build.py +++ b/build.py @@ -1,10 +1,14 @@ import os - +import shutil with open(".version", "r") as version_file: version = version_file.read().strip() print("Building the project...") +# clear dist directory +if os.path.exists("dist"): + shutil.rmtree("dist") + os.makedirs("dist") build = input("Include console in build? (y/n): ").strip().lower()