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

Unified Diff: tools/create_sdk.py

Issue 10937019: First pass at getting git and tar.gz working on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Don't enable all of the Windows tests yet. 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 | « no previous file | utils/pub/io.dart » ('j') | utils/pub/io.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/create_sdk.py
diff --git a/tools/create_sdk.py b/tools/create_sdk.py
index 273d1fd43d3fa4eec78d61c960829f3dbfcc37ca..a99030ca8af66415d5ec3917a03bef1790a68b92 100755
--- a/tools/create_sdk.py
+++ b/tools/create_sdk.py
@@ -475,6 +475,18 @@ def Main(argv):
copytree(pub_src_dir, pub_dst_dir,
ignore=ignore_patterns('.svn', 'sdk'))
+ # Copy in 7zip for Windows.
+ if utils.GuessOS() == 'win32':
+ copytree(join(HOME, 'third_party', '7zip'),
+ join(pub_dst_dir, '7zip'))
+
+ ReplaceInFiles([
+ join(UTIL, 'pub', 'io.dart'),
+ ], [
+ ("var pathTo7zip = '../../third_party/7zip/7za.exe';",
+ "var pathTo7zip = '7zip/7za.exe';"),
+ ])
+
# Copy import maps.
PLATFORMS = ['any', 'vm', 'dartium', 'dart2js' ]
os.makedirs(join(LIB, 'config'))
« no previous file with comments | « no previous file | utils/pub/io.dart » ('j') | utils/pub/io.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698