From ec03f1c8c47de33c6a2b0f0578364299af39b480 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Thu, 17 Nov 2022 16:27:49 -0800 Subject: [PATCH] Revert "[devicelab] measure entire release folder size, zipped (#115597)" (#115609) This reverts commit 75a0a7255584571f14df9e2526e9ed67780bf8c4. --- dev/devicelab/lib/tasks/perf_tests.dart | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/dev/devicelab/lib/tasks/perf_tests.dart b/dev/devicelab/lib/tasks/perf_tests.dart index 82d3906ee4..f52f804485 100644 --- a/dev/devicelab/lib/tasks/perf_tests.dart +++ b/dev/devicelab/lib/tasks/perf_tests.dart @@ -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', ['-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; }