Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1987)

Unified Diff: mojo/tools/deploy.py

Issue 1016143002: Update deploy and deploy_sdk for the new package: world. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/apk/demo/org/domokit/sky/demo/SkyDemoActivity.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/deploy.py
diff --git a/mojo/tools/deploy.py b/mojo/tools/deploy.py
index d2a5189973b413b887464631dae10cd2c5e0dd2a..be83c9395fef669d8c2f78594f6b12a6d2d83f45 100755
--- a/mojo/tools/deploy.py
+++ b/mojo/tools/deploy.py
@@ -93,6 +93,8 @@ def main():
copy(src_path('mojo/public'), deploy_path('mojo/public'),
sky_or_dart_filter)
+ # TODO(eseidel): All of these should be removed and package: sky includes
+ # used instead.
copy(src_path('sky/examples'), deploy_path('sky/examples'),
sky_or_dart_filter)
copy(src_path('sky/framework'), deploy_path('sky/framework'),
@@ -100,12 +102,21 @@ def main():
copy(os.path.join(paths.build_dir, 'gen'), deploy_path('gen'), gen_filter)
copy(src_path('sky/assets'), deploy_path('sky/assets'), assets_filter)
-
shutil.copy(os.path.join(paths.build_dir, 'apks', 'MojoShell.apk'),
args.deploy_root)
shutil.copy(os.path.join(paths.build_dir, 'apks', 'MojoShortcuts.apk'),
args.deploy_root)
+ packages_root = deploy_path('packages')
+ if os.path.exists(packages_root):
+ shutil.rmtree(packages_root)
+ subprocess.check_call([
+ src_path('sky/tools/deploy_sdk.py'),
+ '--non-interactive',
+ deploy_path('sky_sdk'),
+ '--fake-pub-get-into',
+ packages_root
+ ])
with open(deploy_path('LICENSES.sky'), 'w') as license_file:
subprocess.check_call([src_path('tools/licenses.py'), 'credits'],
« no previous file with comments | « no previous file | sky/apk/demo/org/domokit/sky/demo/SkyDemoActivity.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698