This reverts commit 75a0a7255584571f14df9e2526e9ed67780bf8c4.
This commit is contained in:
parent
59a01b64ff
commit
ec03f1c8c4
@ -1513,18 +1513,19 @@ class CompileTest {
|
|||||||
watch.start();
|
watch.start();
|
||||||
await flutter('build', options: options);
|
await flutter('build', options: options);
|
||||||
watch.stop();
|
watch.stop();
|
||||||
final String buildPath = path.join(
|
final String basename = path.basename(cwd);
|
||||||
|
final String exePath = path.join(
|
||||||
cwd,
|
cwd,
|
||||||
'build',
|
'build',
|
||||||
'windows',
|
'windows',
|
||||||
'runner',
|
'runner',
|
||||||
'release',
|
'release',
|
||||||
);
|
'$basename.exe');
|
||||||
|
final File exe = file(exePath);
|
||||||
// On Windows, we do not produce a single installation package file,
|
// On Windows, we do not produce a single installation package file,
|
||||||
// rather a directory containing an .exe and .dll files. Zip them all
|
// rather a directory containing an .exe and .dll files.
|
||||||
// together to get an approximate release size.
|
// The release size is set to the size of the produced .exe file
|
||||||
await exec('tar.exe', <String>['-zcf', 'build/app.tar.gz', buildPath]);
|
releaseSizeInBytes = exe.lengthSync();
|
||||||
releaseSizeInBytes = file('build/app.tar.gz').lengthSync();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user