Skip to content

Commit

Permalink
Revert "[devicelab] measure entire release folder size, zipped (#1155…
Browse files Browse the repository at this point in the history
…97)" (#115609)

This reverts commit 75a0a72.
  • Loading branch information
jonahwilliams authored Nov 18, 2022
1 parent 59a01b6 commit ec03f1c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions dev/devicelab/lib/tasks/perf_tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1513,18 +1513,19 @@ class CompileTest {
watch.start();
await flutter('build', options: options);
watch.stop();
final String buildPath = path.join(
final String basename = path.basename(cwd);
final String exePath = path.join(
cwd,
'build',
'windows',
'runner',
'release',
);
'$basename.exe');
final File exe = file(exePath);
// On Windows, we do not produce a single installation package file,
// rather a directory containing an .exe and .dll files. Zip them all
// together to get an approximate release size.
await exec('tar.exe', <String>['-zcf', 'build/app.tar.gz', buildPath]);
releaseSizeInBytes = file('build/app.tar.gz').lengthSync();
// rather a directory containing an .exe and .dll files.
// The release size is set to the size of the produced .exe file
releaseSizeInBytes = exe.lengthSync();
break;
}

Expand Down

0 comments on commit ec03f1c

Please sign in to comment.