Skip to content

Commit 15769d3

Browse files
committed
Fixed release compilation code
1 parent 30e21bf commit 15769d3

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

build_dist.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,16 @@ def gzip_dir(path_to_dist_dir, gzip_filename_base):
119119

120120
# Prepare all files for release
121121
print("Preparing release")
122+
release_dir = os.path.join(os.getcwd(), "release")
123+
print(release_dir)
124+
os.mkdir(release_dir)
122125
for root, dirs, files in os.walk(top=path_to_dist):
123-
release_dir = os.path.join(os.getcwd(), "release")
124-
if not os.path.exists(release_dir):
125-
os.mkdir(release_dir)
126126
for file in files:
127-
shutil.move(os.path.join(root, file), release_dir)
128-
shutil.move(release_dir, path_to_dist)
127+
file_path = os.path.join(root, file)
128+
print("Copying " + file_path + " into releases folder")
129+
shutil.copy(file_path, release_dir)
130+
131+
shutil.move(release_dir, path_to_dist)
129132

130133
print("Finished")
131134
# Add dist files to git

0 commit comments

Comments
 (0)