Every help is welcome! See how to contribute below
First of all, you need to install some necessary packages:
- Windows
- Be sure to run
npm install windows-build-tools --global
from an elevated prompt (as an administrator) to install windows-build-tools.
- Be sure to run
- Fork this repository on Github
- Make a clone of the created fork repository:
git clone https://github.com/youruser/photon.git
- Create a branch to commit your feature or fix:
git checkout -b my-branch
- Make sure to use
yarn
to install all dependencies
You can test the cli using: yarn ts-node ./cli/index.ts <args>
- Commit the changes:
yarn commit
- Push your branch to your fork:
git push origin my-branch
- Go to Pull Requests from the root repository and create a Pull Request with your commit(s)
You can use Docker to generate all binaries, follow the step by step:
- Install the Docker
- Download the electronuserland/builder image:
docker pull electronuserland/builder
- Run:
yarn release:docker
or you can use yarn release
, but, is not recomended.
After that, you will see the binary in the ./release
folder!
On windows, the CLI is automatically install on PATH in environment variables: photon <args>
If after building during development you get an alert dialog related to node-pty
issues,
make sure its build process is working correctly by running npm run rebuild
.