Skip to content

Latest commit

 

History

History
110 lines (71 loc) · 2.14 KB

build.md

File metadata and controls

110 lines (71 loc) · 2.14 KB

Building Graphest from Source

Prerequisites

macOS

  1. Command Line Tools for Xcode

    xcode-select --install
  2. Homebrew

  3. Node.js

    brew install node
  4. Rust

Windows

  1. Chocolatey

  2. Node.js

    Open Windows PowerShell as an administrator, and run

    cinst nodejs
  3. Build tools

    Open Windows PowerShell as an administrator, and run

    cinst git msys2

    Open Windows PowerShell as a normal user, and run

    pacman -S diffutils m4 make mingw-w64-x86_64-clang mingw-w64-x86_64-gcc
  4. Rust

    Set x86_64-pc-windows-gnu as the default host either on installation:

    .\rustup-init --default-host x86_64-pc-windows-gnu

    or after installation:

    rustup set default-host x86_64-pc-windows-gnu

    See Windows - The rustup book for details.

Ubuntu

  1. Command line tools and libraries

    sudo apt update
    sudo apt upgrade -y
    sudo apt install -y build-essential curl git libclang-dev m4

    libraries required to run Electron:

    sudo apt install -y libatk-bridge2.0-0 libatk1.0-0 libgbm1 libgconf-2-4 libgdk-pixbuf2.0-0 libgtk-3-0 libnss3
  2. Node.js

    curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
    sudo apt install -y nodejs
  3. Rust

Build

  1. Clone the repo and install Node.js dependencies

    git clone https://github.com/unageek/graphest.git
    cd graphest
    npm install
  2. Run the app

    npm start

    On Windows, you need to add MSYS/MinGW at the beginning of PATH before executing build commands:

    $env:PATH = "C:\tools\msys64\usr\bin;C:\tools\msys64\mingw64\bin;" + $env:PATH