OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Run 'candle' and 'light' to transform .wxs to .msi.""" | 6 """Run 'candle' and 'light' to transform .wxs to .msi.""" |
7 | 7 |
8 from optparse import OptionParser | 8 from optparse import OptionParser |
9 import os | 9 import os |
10 import subprocess | 10 import subprocess |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 '-out "%(output)s" ' + | 64 '-out "%(output)s" ' + |
65 '"%(intermediate_dir)s/%(basename)s.wixobj" ') | 65 '"%(intermediate_dir)s/%(basename)s.wixobj" ') |
66 rc = run(light_template % parameters) | 66 rc = run(light_template % parameters) |
67 if rc: | 67 if rc: |
68 return rc | 68 return rc |
69 | 69 |
70 return 0 | 70 return 0 |
71 | 71 |
72 if __name__ == "__main__": | 72 if __name__ == "__main__": |
73 sys.exit(main()) | 73 sys.exit(main()) |
OLD | NEW |