Pierre-Louis
2fc76c7896
Reland #128236 "Improve build output for all platforms" (#143166)
Reland #128236, reverted in https://github.com/flutter/flutter/pull/143125.
This PR contains [one additional commit](199baea9a9
), fixing the 2 failed tests.
## Original description
Improves the build output:
1. Gives confirmation that the build succeeded, in green
1. Gives the path to the built executable, without a trailing period to make it slightly easier to cmd/ctrl+open
1. Gives the size of the built executable (when the built executable is self contained)
### `apk`, `appbundle`
<img width="607" alt="image" src="https://github.com/flutter/flutter/assets/6655696/ecc52abe-cd2e-4116-b22a-8385ae3e980d">
<img width="634" alt="image" src="https://github.com/flutter/flutter/assets/6655696/8af8bd33-c0bd-4215-9a06-9652ee019436">
### `macos`, `ios`, `ipa`
Build executables are self-contained and use a newly introduced `OperatingSystemUtils.getDirectorySize`.
<img width="514" alt="image" src="https://github.com/flutter/flutter/assets/6655696/b5918a69-3959-4417-9205-4f501d185257">
<img width="581" alt="image" src="https://github.com/flutter/flutter/assets/6655696/d72fd420-18cf-4470-9e4b-b6ac10fbcd50">
<img width="616" alt="image" src="https://github.com/flutter/flutter/assets/6655696/5f235ce1-252a-4c13-898f-139f6c7bc698">
### `windows`, `linux`, and `web`
Build executables aren't self-contained, and folder size can sometimes overestimate distribution size, therefore their size isn't mentioned (see discussion below).
<img width="647" alt="image" src="https://github.com/flutter/flutter/assets/6655696/7179e771-1eb7-48f6-b770-975bc073437b">
<img width="658" alt="image" src="https://github.com/flutter/flutter/assets/6655696/a6801cab-7b5a-4975-a406-f4c9fa44d7a2">
<img width="608" alt="image" src="https://github.com/flutter/flutter/assets/6655696/ee7c4125-a273-4a65-95d7-ab441edf8ac5">
### Size reporting
When applicable, the printed size matches the OS reported size.
- macOS
<img width="391" alt="image" src="https://github.com/flutter/flutter/assets/6655696/881cbfb1-d355-444b-ab44-c1a6343190ce">
- Windows
<img width="338" alt="image" src="https://github.com/flutter/flutter/assets/6655696/3b806def-3d15-48a9-8a25-df200d6feef7">
- Linux
<img width="320" alt="image" src="https://github.com/flutter/flutter/assets/6655696/89a4aa3d-2148-4f3b-b231-f93a057fee2b">
## Related issues
Part of #120127
Fixes https://github.com/flutter/flutter/issues/121401
2024-03-16 08:13:56 +00:00
..
2024-02-08 12:39:00 -08:00
2024-03-16 08:13:56 +00:00
2024-03-12 22:41:26 +00:00
2024-02-29 23:10:50 +00:00
2024-01-25 07:51:25 +00:00
2024-02-15 22:22:48 +00:00
2024-02-13 11:15:15 -08:00
2024-02-16 22:38:10 +00:00
2023-12-20 22:14:32 +00:00
2023-11-09 03:46:25 +00:00
2024-03-04 23:01:11 +00:00
2024-03-07 15:09:15 +00:00
2024-02-08 17:49:48 +00:00
2024-02-27 23:21:03 +00:00
2023-09-27 12:22:58 +00:00
2024-03-13 22:24:25 +00:00
2023-11-27 22:00:50 +00:00
2024-03-04 23:01:11 +00:00
2024-02-13 20:02:10 +00:00
2023-09-10 08:07:13 +00:00
2023-12-04 21:59:53 +00:00
2024-03-12 22:41:26 +00:00
2024-02-08 17:49:48 +00:00
2023-10-18 00:27:54 +00:00
2024-02-28 20:09:54 +00:00
2024-01-29 18:43:57 +00:00
2024-03-07 23:38:40 +00:00
2024-01-26 22:01:26 +00:00
2024-01-26 22:01:26 +00:00
2023-12-14 05:30:10 +00:00
2024-03-07 23:38:40 +00:00
2024-02-28 20:09:54 +00:00
2024-02-02 18:23:08 +00:00
2024-03-08 09:55:02 +01:00
2023-10-11 16:15:26 -04:00
2024-03-08 09:55:02 +01:00
2024-02-16 22:38:10 +00:00
2024-02-27 08:39:49 +00:00
2024-03-07 23:04:08 +00:00
2023-10-12 13:23:52 -04:00
2024-03-11 21:00:17 +00:00
2024-02-23 19:02:22 +00:00
2024-02-22 18:35:21 +00:00
2024-02-21 01:20:04 +00:00
2024-02-16 22:24:59 +00:00
2024-02-16 22:24:59 +00:00
2024-02-14 00:11:24 +00:00
2024-02-14 21:08:25 +00:00
2023-09-10 08:07:13 +00:00
2024-01-11 17:57:00 +00:00
2024-01-10 18:50:07 +00:00
2024-03-05 19:14:48 +00:00
2024-02-08 17:49:48 +00:00
2024-02-27 23:21:03 +00:00
2023-11-07 20:37:19 +00:00
2023-12-21 19:01:16 +00:00
2024-01-12 22:10:25 +00:00
2024-02-28 18:54:18 +00:00
2024-03-05 19:14:48 +00:00
2024-02-28 18:54:18 +00:00
2023-12-20 22:14:32 +00:00
2024-03-05 19:14:48 +00:00
2024-02-27 23:21:03 +00:00
2023-08-08 21:43:00 +00:00
2024-02-28 18:54:18 +00:00
2024-02-28 18:54:18 +00:00
2023-12-15 19:58:05 +00:00
2024-02-06 20:00:08 -08:00
2024-03-16 08:13:56 +00:00
2023-09-06 17:22:13 +00:00
2024-02-28 18:54:18 +00:00
2024-03-12 22:41:26 +00:00
2024-01-18 12:32:49 -05:00
2023-12-14 05:30:10 +00:00