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

Unified Diff: sky/tools/sky_packager.py

Issue 1211253004: Add MineDigger.apk that works offline (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: one more examples Created 5 years, 6 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 | « sky/tools/packager/main.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/sky_packager.py
diff --git a/sky/tools/sky_packager.py b/sky/tools/sky_packager.py
new file mode 100755
index 0000000000000000000000000000000000000000..7131365392a958fecdf3c8cfdbe26b7dadabb9dc
--- /dev/null
+++ b/sky/tools/sky_packager.py
@@ -0,0 +1,28 @@
+#!/usr/bin/env python
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import argparse
+import subprocess
+import sys
+import os
+
+def main():
+ parser = argparse.ArgumentParser(description='Sky Packager')
+ parser.add_argument('executable', type=str)
+ parser.add_argument('main', type=str)
+ parser.add_argument('--package-root', type=str)
+ parser.add_argument('--snapshot', type=str)
+ parser.add_argument('-C', type=str,
+ help='Switch to this directory before running executable')
+ args = parser.parse_args()
+ return subprocess.check_call([
+ args.executable,
+ args.main,
+ '--package-root=%s' % args.package_root,
+ '--snapshot=%s' % args.snapshot,
+ ], cwd=args.C)
+
+if __name__ == '__main__':
+ sys.exit(main())
« no previous file with comments | « sky/tools/packager/main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698