Skip to content

Latest commit

 

History

History
executable file
·
41 lines (23 loc) · 2.12 KB

build_instruction.md

File metadata and controls

executable file
·
41 lines (23 loc) · 2.12 KB

Run or build Substrate IDE from source

Requirements

Preparations

  1. Create a new folder substrate and switch to it

  2. 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
  1. Switch to electron-components folder and run yarn && yarn build to install dependencies and compile libraries in electron-components

  2. Switch to substrate-components folder and run yarn && yarn build to install dependencies and compile libraries in substrate-components

  3. Switch to SubstrateIDE folder and run git submodule update --init to download polkadot-js extension

  4. Switch to SubstrateIDE/extensions/polkadot-js folder and run yarn && yarn build to install dependencies and compile polkadot-js

  5. Go back to SubstrateIDE folder and run yarn to install dependencies for Substrate IDE

  6. 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 run yarn again. You also need to provide your pro license as instructed here.

Run Substrate IDE in dev mode

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.

Build Substrate IDE

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.