File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -119,13 +119,16 @@ def gzip_dir(path_to_dist_dir, gzip_filename_base):
119
119
120
120
# Prepare all files for release
121
121
print ("Preparing release" )
122
+ release_dir = os .path .join (os .getcwd (), "release" )
123
+ print (release_dir )
124
+ os .mkdir (release_dir )
122
125
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 )
126
126
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 )
129
132
130
133
print ("Finished" )
131
134
# Add dist files to git
You can’t perform that action at this time.
0 commit comments