Skip to content

Commit

Permalink
Update build.py
Browse files Browse the repository at this point in the history
  • Loading branch information
IamEld3st committed Apr 7, 2020
1 parent 02d44b0 commit ac180e3
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,7 @@
if not os.path.exists('./dist/'):
os.mkdir('./dist/')

with ZipFile(f"./dist/node-rlbot-{latest_lts['version']}-{latest_lts['lts']}.zip", 'w') as zipObj:
# Iterate over all the files in directory
for folderName, subfolders, filenames in os.walk('./build/'):
for filename in filenames:
# create complete filepath of file in directory
filePath = os.path.join(folderName, filename)
path = Path(filePath)

# Add file to zip
zipObj.write(path, Path(*path.parts[2:]))
shutil.make_archive(
f"./dist/node-rlbot-{latest_lts['version']}-{latest_lts['lts']}.zip", 'zip', './build/')

shutil.rmtree('./build/')

0 comments on commit ac180e3

Please sign in to comment.