mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-22 22:37:18 +00:00

To prevent any potential version incompatibility caused by simply installing the latest version of the packages in the CI services. See: https://github.com/resin-io/etcher/pull/1326 Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
2.3 KiB
2.3 KiB
Running locally
This document aims to serve as a guide to get Etcher running locally on your development machine.
Prerequisites
Common
Windows
- NSIS v2.51 (v3.x won't work)
- Either one of the following:
- Visual C++ 2015 Build Tools containing standalone compilers, libraries and scripts
- Install the windows-build-tools via npm with
npm install --global windows-build-tools
- Visual Studio Community 2015 (free) (other editions, like Professional and Enterprise, should work too)
NOTE: Visual Studio 2015 doesn't install C++ by default. You have to rerun the
setup, select "Modify" and then check
Visual C++ -> Common Tools for Visual C++ 2015
(see http://stackoverflow.com/a/31955339)
- MinGW
The following MinGW packages are required:
msys-make
msys-unzip
msys-zip
msys-bash
msys-coreutils
OS X
Cloning the project
git clone https://github.com/resin-io/etcher
cd etcher
Installing npm dependencies
Make sure you have all the pre-requisites listed above installed in your
system before running the install
script.
Please make use of the following scripts to install npm dependencies rather
than simply running npm install
given that we need to do extra configuration
to make sure native dependencies are correctly compiled for Electron, otherwise
the application might not run successfully.
If you're on Windows, run the command from the Developer Command Prompt for
VS2015, to ensure all Visual Studio command utilities are available in the
%PATH%
.
make electron-develop
Running the application
GUI
npm start
CLI
node bin/etcher