-
Create a new folder
substrate
and switch to it -
Run the following commands to clone 3 repositories under
substrate
folder:
$ git clone https://github.com/ObsidianLabs/SubstrateIDE.git
$ git clone https://github.com/ObsidianLabs/substrate-components.git
$ git clone https://github.com/ObsidianLabs/electron-components.git
-
Switch to
electron-components
folder and runyarn && yarn build
to install dependencies and compile libraries in electron-components -
Switch to
substrate-components
folder and runyarn && yarn build
to install dependencies and compile libraries in substrate-components -
Switch to
SubstrateIDE
folder and rungit submodule update --init
to download polkadot-js extension -
Switch to
SubstrateIDE/extensions/polkadot-js
folder and runyarn && yarn build
to install dependencies and compile polkadot-js -
Go back to
SubstrateIDE
folder and runyarn
to install dependencies for Substrate IDE -
The production version of Substrate IDE uses Font Awesome Pro. If you want to run or build Substrate IDE with the pro version, please open
package.json
and replace@fortawesome/fontawesome-free
with@fortawesome/fontawesome-pro
, and runyarn
again. You also need to provide your pro license as instructed here.
When all the dependencies are ready, switch to SubstrateIDE
folder and run yarn dev:main
and yarn dev:react
in two separate terminals. The first command would start the electron application, and the second would start the react project that provides the user interface.
When all the dependencies are ready, switch to SubstrateIDE
folder and run yarn dist
to build Substrate IDE as a standalone application. Wait until it finishes. The built files can be found under SubstrateIDE/dist
folder.