Skip to content

Commit

Permalink
Merge pull request #224 from MikeLing/Bugfix-1161542
Browse files Browse the repository at this point in the history
Add some options for bundle when create the installer on windows
  • Loading branch information
parkouss committed May 18, 2015
2 parents 0919e71 + db6c0cf commit 341f93d
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions gui/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,8 @@ def do_bundle(options):
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"
)
python_lib_path = os.path.join(options.python_path, "Lib")
makensis_path = os.path.join(options.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 +118,14 @@ 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 the'
' system(default: %(default)r)')
bundle.add_argument('--nsis-path', dest='nsis_path',
default='C:\\NSIS',
help='your NSIS path on the'
' system(default: %(default)r)')
bundle.set_defaults(func=do_bundle)

return parser.parse_args()
Expand Down

0 comments on commit 341f93d

Please sign in to comment.