Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
make sure to include server code in webstore bundle, also remove debu…
Browse files Browse the repository at this point in the history
…g options page
  • Loading branch information
psawaya committed Dec 27, 2012
1 parent 4e82c6f commit bea93e8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions bundle_for_webstore.py
Expand Up @@ -23,10 +23,11 @@ def bundle():
# Delete git stuff in temp directory
if os.path.isdir('temp/.git'):
shutil.rmtree('temp/.git')

# Delete server code
shutil.rmtree('temp/server')


# Delete options page code, it's debug only
if os.path.isdir('temp/pages/debug_settings'):
shutil.rmtree('temp/pages/debug_settings')

# Delete infobar manifest
os.unlink('temp/infobar/manifest.json')

Expand All @@ -49,6 +50,9 @@ def changeManifest(manifestFilename):
# Remove update_url, web store does its own updating
if manifest.get('update_url'):
del manifest['update_url']
# Remove options page, it's debug-only
if manifest.get('options_page'):
del manifest['options_page']
# Bump up minor version number
version = map(int,manifest['version'].split('.'))
version[-1] += 1
Expand Down

0 comments on commit bea93e8

Please sign in to comment.