File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1513,18 +1513,19 @@ class CompileTest {
1513
1513
watch.start ();
1514
1514
await flutter ('build' , options: options);
1515
1515
watch.stop ();
1516
- final String buildPath = path.join (
1516
+ final String basename = path.basename (cwd);
1517
+ final String exePath = path.join (
1517
1518
cwd,
1518
1519
'build' ,
1519
1520
'windows' ,
1520
1521
'runner' ,
1521
1522
'release' ,
1522
- );
1523
+ '$basename .exe' );
1524
+ final File exe = file (exePath);
1523
1525
// 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 ();
1528
1529
break ;
1529
1530
}
1530
1531
You can’t perform that action at this time.
0 commit comments