Skip to content

Commit

Permalink
Fixed release compilation code
Browse files Browse the repository at this point in the history
  • Loading branch information
terrabitz committed Dec 30, 2016
1 parent 30e21bf commit 15769d3
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions build_dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,16 @@ def gzip_dir(path_to_dist_dir, gzip_filename_base):

# Prepare all files for release
print("Preparing release")
release_dir = os.path.join(os.getcwd(), "release")
print(release_dir)
os.mkdir(release_dir)
for root, dirs, files in os.walk(top=path_to_dist):
release_dir = os.path.join(os.getcwd(), "release")
if not os.path.exists(release_dir):
os.mkdir(release_dir)
for file in files:
shutil.move(os.path.join(root, file), release_dir)
shutil.move(release_dir, path_to_dist)
file_path = os.path.join(root, file)
print("Copying " + file_path + " into releases folder")
shutil.copy(file_path, release_dir)

shutil.move(release_dir, path_to_dist)

print("Finished")
# Add dist files to git
Expand Down

0 comments on commit 15769d3

Please sign in to comment.