Skip to content

Build from Source

Source Code

https://github.com/genet-app/genet

Requirements

Common

  • git
  • Node.js >= 8.x
  • Rust >= 1.27.0

macOS

  • Xcode 9

Linux

  • gcc
  • libpcap-dev
  • libcap-dev

Using apt-get

1
sudo apt-get install build-essential libpcap-dev libcap-dev

Windows

  • Visual Studio 2015/2017

Build

Debug

1
2
3
4
5
6
7
8
9
git clone https://github.com/genet-app/genet.git
cd genet
npm install

# build genet in debug mode
npm run build

# run genet
node_modules/.bin/negatron .

Release

To build genet in release mode, set NODE_ENV environment variable to production.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
git clone https://github.com/genet-app/genet.git
cd genet
npm install

# build genet in release mode
NODE_ENV=production npm run build

# run genet
node_modules/.bin/negatron .

# create distribution packages
node_modules/.bin/electron-builder

About Negatron

Negatron is a fork of Electron (and libchromiumcontent).

genet uses Negatron to get rid of some issues related to V8 JavaScript Engine. You cannot launch genet with the official electron build (GC will crash!).