Skip to content

Commit

Permalink
Merge pull request #43 from elyak123/avoid_redownload_template
Browse files Browse the repository at this point in the history
Fixing graceful handling app lifecycle
  • Loading branch information
freakboy3742 committed May 24, 2017
2 parents e58a229 + e795c91 commit 7dd7af6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ dist
build
docs/_build
distribute-*
.DS_Store
14 changes: 7 additions & 7 deletions briefcase/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ def post_run(self):
print("Installation complete.")

def run(self):
full_generation = True
#import pdb; pdb.set_trace()
if os.path.exists(self.dir):
print()
if os.path.isdir(self.dir):
Expand All @@ -309,20 +311,18 @@ def run(self):
else:
os.remove(self.dir)
else:
print("Briefcase deployment cancelled.")
return

self.generate_app_template()
print("Updating user code.")
full_generation = False
if full_generation:
self.generate_app_template()#
self.install_support_package()#
self.install_app_requirements()
self.install_platform_requirements()
self.install_code()
self.install_resources()
self.install_support_package()
self.install_extras()

if self.build:
self.build_app()
if self.execute:
self.run_app()

self.post_run()

0 comments on commit 7dd7af6

Please sign in to comment.