See https://github.com/luizribeiro/mariner/ for info on hardware requirements and the origin of the main compenent that this script installs.
This script is intended for a fresh Rasbian Lite installation on a Raspberry Pi Zero, but should work on all Pi models that support USB OTG.
It will expand the filesystem to the full size of your SD card, install Mariner, set up a folder on the Pi as a USB drive, create a sambashare, and a couple other things.
Either from this Github or using
wget https://raw.githubusercontent.com/KTheMan/Mariner-Autoinstaller/main/mariner.sh
sudo chmod +x ./mariner.sh
sudo bash ./mariner.sh
Follow the prompts in the script, reboot, and run once more. You should see a different set of prompts on the second run.