Skip to content

Commit

Permalink
fix build script for broken chrome zip
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanb10 committed Nov 5, 2020
1 parent 26ccc31 commit 2762951
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@


#
# Remove non-essential files
# Copy essential files only
#
shitfiles = shutil.ignore_patterns('.DS_Store', '.git', '.Trashes', '.Spotlight-V100', '.github')

shutil.copytree('html', FOLDER + '/html', ignore = shitfiles)
shutil.copytree('scripts', FOLDER + '/scripts', ignore = shitfiles)
shutil.copytree('styles', FOLDER + '/styles', ignore = shitfiles)
shutil.copytree('icons', FOLDER + '/icons', ignore = shitfiles)
shutil.copy('manifest.json', FOLDER)
modified_manifest = open(FOLDER + '/manifest.json', 'w+')
with open(FOLDER + '/manifest.json', 'w+') as m:
m.write(json.dumps(data, indent=4))

#
# Build release for chrome
Expand Down Expand Up @@ -80,8 +80,6 @@
shutil.make_archive(name, 'zip', FOLDER)
print('Created Safari Release: ' + '\x1b[1;32;40m' + name + '.zip' + '\x1b[0m')

modified_manifest.close()

#
# Print changelog
#
Expand Down

0 comments on commit 2762951

Please sign in to comment.