MobiFlight / CommunityTemplate

Check out this repository if you want to create your customized MobiFlight firmware
MIT License
3 stars 6 forks source link

Create script to setup a new repository #4

Open aeroniemi opened 8 months ago

aeroniemi commented 8 months ago

Currently, setting up a new custom device/board is quite a lot of effort, because you have to go through a lot of locations and edit the names/values of things. This issue suggests creating a interactive script, similar to npm init or create-react-app that asks the user for some values (e.g. the name of the device, supported boards, etc.) and then applies them to setup the project as required. This would reduce the barrier to entry/time taken for creating new devices.

I think the easiest way would be another python script to run pre-build if the project has not been configured as yet with interactive prompts, but it could also be a seporate python script for users to run (e.g python ./project-setup.py)

aeroniemi commented 8 months ago

Something along the lines of:

New device setup wizard
Pretty name of your project: ...
Code-compliant name of your project: ...
Support Arduino Mega (Y/n):
Support Raspberry Pi Pico (Y/n):

Configure device 1
Pretty name of your device:
Code-compliant name of your device:

Do you require more than one device (y/N)?

*if y*:

Configure device 2
...