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

Unified Diff: remoting/tools/dark_and_candle_and_light.py

Issue 10959031: [Chromoting] Publish Chromoting Host installation as a .zip archive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Oops, |target| and |sources| were swapped. Created 8 years, 3 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 | « remoting/tools/candle_and_light.py ('k') | remoting/tools/zip2msi.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/tools/dark_and_candle_and_light.py
diff --git a/remoting/tools/dark_and_candle_and_light.py b/remoting/tools/dark_and_candle_and_light.py
deleted file mode 100755
index 68598757913b7cb47acf650416479bbe86d41dbf..0000000000000000000000000000000000000000
--- a/remoting/tools/dark_and_candle_and_light.py
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 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.
-
-"""Run 'dark', 'candle', and 'light', to confirm that an msi can be unpacked
-repacked successfully."""
-
-from optparse import OptionParser
-import os
-import subprocess
-import sys
-
-def run(command):
- popen = subprocess.Popen(
- command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
- out, _ = popen.communicate()
- return popen.returncode, out
-
-def main():
- parser = OptionParser()
- parser.add_option('--wix_path', dest='wix_path')
- parser.add_option('--input', dest='input')
- parser.add_option('--intermediate_dir', dest='intermediate_dir')
- parser.add_option('--output', dest='output')
- options, args = parser.parse_args()
- if args:
- parser.error("no positional arguments expected")
- parameters = dict(options.__dict__)
-
- parameters['basename'] = os.path.splitext(os.path.basename(options.output))[0]
-
- dark_template = ('"%(wix_path)s\\dark" ' +
- '-nologo ' +
- '"%(input)s" ' +
- '-o "%(intermediate_dir)s/%(basename)s.wxs" ' +
- '-x "%(intermediate_dir)s"')
- (rc, out) = run(dark_template % parameters)
- if rc:
- for line in out.splitlines():
- print line
- print 'dark.exe returned %d' % rc
- return rc
-
- candle_template = ('"%(wix_path)s\\candle" ' +
- '-nologo ' +
- '"%(intermediate_dir)s/%(basename)s.wxs" ' +
- '-o "%(intermediate_dir)s/%(basename)s.wixobj" ' +
- '-ext "%(wix_path)s\\WixFirewallExtension.dll"')
- (rc, out) = run(candle_template % parameters)
- if rc:
- for line in out.splitlines():
- print line
- print 'candle.exe returned %d' % rc
- return rc
-
- light_template = ('"%(wix_path)s\\light" ' +
- '-nologo ' +
- '"%(intermediate_dir)s/%(basename)s.wixobj" ' +
- '-o "%(output)s" ' +
- '-ext "%(wix_path)s\\WixFirewallExtension.dll" ' +
- '-sw1076 ')
- (rc, out) = run(light_template % parameters)
- if rc:
- for line in out.splitlines():
- print line
- print 'candle.exe returned %d' % rc
- return rc
-
- return 0
-
-if __name__ == "__main__":
- sys.exit(main())
« no previous file with comments | « remoting/tools/candle_and_light.py ('k') | remoting/tools/zip2msi.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698