@@ -1283,7 +1283,7 @@ Future<int> downloadTools(
12831283 Version version = parseVersion (dartinoVersion);
12841284 if (version.isEdgeVersion) {
12851285 // For edge versions download use a well known version for now.
1286- var knownVersion = "0.3 .0-dev.5.2 " ;
1286+ var knownVersion = "0.5 .0-dev.0.0 " ;
12871287 print ("WARNING: For bleeding edge tools from version "
12881288 "$knownVersion is used." );
12891289 gcsPath = "channels/dev/raw/$knownVersion /sdk" ;
@@ -1315,14 +1315,9 @@ Future<int> downloadTools(
13151315
13161316 // TODO(karlklose): add MacOS version
13171317 if (Platform .isLinux) {
1318- String emul8 = "emul8-${osName }.zip" ;
1319- // TODO(karlklose): remove this and the helper when we have a dev version
1320- // archived that we can point to.
1321- Uri temporaryPath = Uri .parse (
1322- "https://storage.googleapis.com/dartino-temporary/channels/be/raw/"
1323- "0.4.0-edge.8fa0e09687e17b163825f757a9a7e89e6dd8e97d/sdk/"
1324- "emul8-linux.zip" );
1325- result = await downloadToolFromUri (temporaryPath, emul8, "Emul8" );
1318+ String gccArmEmbedded = "emul8-${osName }.zip" ;
1319+ var result =
1320+ await downloadTool (gcsPath, gccArmEmbedded, "Emul8" );
13261321 if (result != 0 ) return result;
13271322 }
13281323
@@ -1511,7 +1506,9 @@ Future<int> buildImage(
15111506 // Copy the .bin file from the tmp directory.
15121507 String tmpBinFile = join (tmpDir.path, "${baseName }.bin" );
15131508 String binFile = "${withoutExtension (snapshot .path )}.bin" ;
1514- await new File (tmpBinFile).copy (binFile);
1509+ // Use cp rather than File.copy() so that sparse files are not turned into
1510+ // non-sparse files, which costs 400Mbytes of disk use.
1511+ await Process .run ("/bin/cp" , [tmpBinFile, binFile]);
15151512 // Copy the .elf file from the tmp directory.
15161513 String tmpElfFile = join (tmpDir.path, "${baseName }.elf" );
15171514 String elfFile = "${withoutExtension (snapshot .path )}.elf" ;
0 commit comments