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 Native Client Authors. All rights reserved. |
noelallen1
2012/09/19 19:47:25
same
| |
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 """Takes the output of the build step and zips the distributable package. | 6 """Takes the output of the build step and zips the distributable package. |
7 | 7 |
8 This script assumes the build script has been run to compile the add-in. | 8 This script assumes the build script has been run to compile the add-in. |
9 It zips up all files required for the add-in installation and places the | 9 It zips up all files required for the add-in installation and places the |
10 result in out/NativeClientVSAddin.zip | 10 result in out/NativeClientVSAddin.zip |
11 """ | 11 """ |
12 | 12 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
115 file_name = os.path.basename(source_dest[0]) | 115 file_name = os.path.basename(source_dest[0]) |
116 dest = os.path.join(source_dest[1], file_name) | 116 dest = os.path.join(source_dest[1], file_name) |
117 out_file.write(source_dest[0], dest, zipfile.ZIP_DEFLATED) | 117 out_file.write(source_dest[0], dest, zipfile.ZIP_DEFLATED) |
118 AddFolderToZip(RESOURCE_DIRECTORY, out_file) | 118 AddFolderToZip(RESOURCE_DIRECTORY, out_file) |
119 AddVersionModifiedAddinFile(out_file) | 119 AddVersionModifiedAddinFile(out_file) |
120 out_file.close() | 120 out_file.close() |
121 | 121 |
122 | 122 |
123 if __name__ == '__main__': | 123 if __name__ == '__main__': |
124 main() | 124 main() |
OLD | NEW |