Can the APP partition be automatically expanded to the maximum during flashing?

The module is Orin nano, jetpack 5.1.3, only use nvme ssd.
I want the APP partition to automatically expand to the maximum capacity of the Nvme SSD during flashing. Instead of the first configuration after flashing.
Of course, this is based on the premise of the minimum size and other partition sizes.
This is to facilitate the use of the same system on different sizes of Nvme SSD.
Is there any way to do this?

Hi EEEXcalibur,

Are you using the devkit or custom board for Orin Nano?

I think it has been implemented in current flashing process.
Please refer to nvresizefs.sh for details.