Project generator for Nintendo Switch homebrews.
- Features
- Installation
- Generating a libnx (C++) project
- Generating a libtransistor (C) project
- Generating a BrewJS project
- Generating a PyNX project
- Skip prompts
- Generate a libnx (C++) project using
nxstart libnx - Generate a libtransistor (C) project using
nxstart libt - Generate a BrewJS (Javascript) project using
nxstart brewjs - Generate a PyNX (Python) project using
nxstart pynx
Install from PyPi using pip, a package manager for Python.
pip install nxstartDon't have pip installed? Try installing it, by running this from the command line:
curl "https://bootstrap.pypa.io/get-pip.py" | pythonOr, you can download the source code for nxstart and then run:
python setup.py installYou may need to run the above commands with sudo.
Run nxstart libnx. It will ask for a project name, author name and if you are
using CLion (IDE by Jetbrains). If you say yes to CLion, CMakeLists.txt will be included.
The following project structure will be generated:
project
│ .editorconfig
│ .gitignore
│ CMakeLists.txt // Only if you use CLion
│ Makefile
│ icon.jpg
│ README.md
│
└───data
│
└───include
│
└───source
│ main.cpp // Your main application file
Run nxstart libt. It will ask for a project name, author name and if you are
using CLion (IDE by Jetbrains). If you say yes to CLion, CMakeLists.txt will be included.
The following project structure will be generated:
project
│ .editorconfig
│ .gitignore
│ CMakeLists.txt // Only if you use CLion
│ main.c // Your main application file
│ Makefile
│ icon.jpg
│ README.md
│
Run nxstart brewjs. It will ask for a project name and author name. The following project structure will be generated:
project
│ .editorconfig
│ .gitignore
│ package.json
│ Source.js // Your main application file
│ README.md
│
└───assets
│
Run nxstart pynx. It will ask for a project name and author name. The following project structure will be generated:
project
│ .editorconfig
│ .gitignore
│ main.py // Your main application file
│ README.md
│
To skip the prompts, provide the necessary flags. For example:
nxstart -n "My new project" -a "John Doe" libnx --clionOr if you don't use CLion:
nxstart -n "My new project" -a "John Doe" libnx --no-clionTests can be run with the pytest command. If you are contributing code, make sure all tests are green before
submitting a PR.