Skip to content

Commit

Permalink
"add some options for bundle"
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeLing committed May 18, 2015
1 parent d4a2894 commit 8e03b49
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions gui/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,13 @@ def do_bundle(options):
for dirname in ('build', 'dist'):
if os.path.isdir(dirname):
shutil.rmtree(dirname)
# create a intaller
python_lib_path = os.path.join(
os.getenv('MOZREGUI_PYTHONPATH', "C:\\Python27"),
"Lib"
)
makensis_path = os.path.join(
os.getenv('MOZREGUI_NSISPATH', "C:\\NSIS"),
"makensis.exe"
)
# create a intaller
if options.python_path:
python_path = options.python_path
if options.nsis_path:
nsis_path = options.nsis_pat
python_lib_path = os.path.join(python_path, "Lib")
makensis_path = os.path.join(nsis_path, "makensis.exe")
gui_path = os.path.realpath('.')
moz_path = os.path.realpath('..')
python_dir = os.path.join(
Expand Down Expand Up @@ -124,6 +122,12 @@ def parse_args():

bundle = subparsers.add_parser('bundle',
help='bundle the application (freeze)')
bundle.add_argument('--python-path', dest='python_path',
default='C:\\Python27',
help='your python path on system')
bundle.add_argument('--nsis-path', dest='nsis_path',
default='C:\\NSIS',
help='your nsis path on system')
bundle.set_defaults(func=do_bundle)

return parser.parse_args()
Expand Down

0 comments on commit 8e03b49

Please sign in to comment.