Skip to content

Commit 5915442

Browse files
jonahwilliamsgspencergoog
authored andcommitted
Revert "[devicelab] measure entire release folder size, zipped (flutter#115597)" (flutter#115609)
This reverts commit 75a0a72.
1 parent 7fd0049 commit 5915442

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

dev/devicelab/lib/tasks/perf_tests.dart

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,18 +1513,19 @@ class CompileTest {
15131513
watch.start();
15141514
await flutter('build', options: options);
15151515
watch.stop();
1516-
final String buildPath = path.join(
1516+
final String basename = path.basename(cwd);
1517+
final String exePath = path.join(
15171518
cwd,
15181519
'build',
15191520
'windows',
15201521
'runner',
15211522
'release',
1522-
);
1523+
'$basename.exe');
1524+
final File exe = file(exePath);
15231525
// On Windows, we do not produce a single installation package file,
1524-
// rather a directory containing an .exe and .dll files. Zip them all
1525-
// together to get an approximate release size.
1526-
await exec('tar.exe', <String>['-zcf', 'build/app.tar.gz', buildPath]);
1527-
releaseSizeInBytes = file('build/app.tar.gz').lengthSync();
1526+
// rather a directory containing an .exe and .dll files.
1527+
// The release size is set to the size of the produced .exe file
1528+
releaseSizeInBytes = exe.lengthSync();
15281529
break;
15291530
}
15301531

0 commit comments

Comments
 (0)