move the engine download code to dart (#3180)

* move the engine download code to dart

* fix populating the bin/cache/pkg dir
This commit is contained in:
Devon Carew
2016-04-07 13:31:44 -07:00
parent b9e121a5fa
commit a729b02f1a
6 changed files with 115 additions and 88 deletions

View File

@@ -40,7 +40,7 @@ class _PosixUtils extends OperatingSystemUtils {
@override
ProcessResult makeExecutable(File file) {
return Process.runSync('chmod', ['u+x', file.path]);
return Process.runSync('chmod', ['a+x', file.path]);
}
/// Return the path (with symlinks resolved) to the given executable, or `null`