@mitu
It took me quite some time to get it working.
I have found some strange things along the way.
I found that I can use downloadAndExtract to download github repositories.
This solution works much faster than gitPullOrClone and it seems it downloads far less data too.
The second thing I encountered was that the compiled binaries didn't work.
Strange because it manually works, so it made me wonder if it had something to do with the user who is doing it.
I tried many things, but adding sudo -u root to the cmake line does the trick.
Very strange because we already run the RetroPie-setup as root.
So I wanted to share this with you.
Do you have any idea why it doesn't make working binaries without sudo -u root ?
This is the link to the working script.
https://raw.githubusercontent.com/FollyMaddy/RetroPie-Share/main/00-workdir-00/b-em-pico_pi.sh
The xbeeb and the xmasterhave both demo discs in them.
The 2048 game is created by Eben Upton.
F11 is the kilograham menu
Shift + F12 boots the disc.
F12 reset
EXIT with mouse closing window