Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
You decided to contribute to this project? Great, thanks a lot for pushing it.
This project adheres to the Contributor Covenant code of conduct.
By participating, you are expected to uphold this code. Please file issue to report unacceptable behavior.
This repository has a mono-repo structure consisting of multiple packages. Try to take a look at the packages directory!
Prerequisites
electron-builder for your other projects to leverage and test with.
To setup a local dev environment
Follow this chapter to setup an environment from scratch.
Publish the electron-builder packages to
yalc
's local store via these commands that you need to run fromelectron-builder/packages
.Unfortunately,the
yalc publish
command cannot pass multiple packages.Now link those packages to your project via the one-liner below (run from your project folder).
The magical script for whenever you make changes to electron-builder! Rebuilds electron-builder, and then patches
the npm modules in your project (such as
electron-quick-start
).Ready for copy-paste into terminal presuming electron-builder repo is at root level outside your project folder,
otherwise adjust path as necessary.
If you are using Windows and Visual Studio Code(Powershell), please use this.
On Windows cmd.exe:
Pull Requests
To check that your contributions match the project coding style make sure
pnpm test
passes.To build project run:
pnpm i && pnpm compile
Git Commit Guidelines
We use semantic-release, so we have very precise rules over how
our git commit messages can be formatted.
Documentation
Documentation files located in the
/docs
./docs
is deployed to Netlify on every release and available for all users.bash netlify-docs.sh
to setup local env (Python 3) and build.Build command:
mkdocs build
.Debug Tests
Only IntelliJ Platform IDEs (IntelliJ IDEA,
WebStorm) support debug.
If you use IntelliJ IDEA or WebStorm — ij-rc-producer is used and you
can run tests from an editor (just click on
Run
green gutter icon).Or you can create the Node.js run configuration manually:
Before launch
containsCompile TypeScript
.Node interpreter
to NodeJS 8. NodeJS 8 is required to debug.Application Parameters
to-t "test name" relative-test-file-name
if you want to debug particular test. E.g.Environment Variables
:TEST_APP_TMP_DIR
to some directory (e.g./tmp/electron-builder-test
) to inspect output if testuses temporary directory (only if
--match
is used). Specified directory will be used instead of randomtemporary directory and cleared on each run.
Run Test using CLI
where
TEST_APP_TMP_DIR
is specified to easily inspect and use test build,assisted
is the test nameand
/oneClickInstallerTest\.\w+$
is the path to test file.Issues
When filing an issue please make sure, that you give all information needed.
This includes:
package.json