Skip to content

Commit 496b69d

Browse files
committed
Merge pull request #25 from kdzwinel/build-process
Move building instructions to a separate doc to keep main readme short & sweet.
2 parents 51fd585 + 369f71d commit 496b69d

File tree

2 files changed

+59
-57
lines changed

2 files changed

+59
-57
lines changed

README.md

Lines changed: 2 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -6,64 +6,9 @@ This tool will help you analyze web traffic outside the browser using familiar C
66

77
**This project is in an early stage of development, things may break, values may not be accurate. All contributors are very welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) fore more details.**
88

9+
## Install package
910

10-
## How To Install
11-
12-
On the releases tab, you will find several packages. Choose the correct one to your operating system.
13-
14-
## How to Build
15-
16-
To clone and run this repository you'll need [Git](https://git-scm.com) and [Node.js 5.x](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com)) installed on your computer. From your command line:
17-
18-
There are a few build scripts included in the `package.json` that allows you to create some binaries/bundles to your operating system.
19-
20-
The files created by the following scripts are placed in a folder inside the `bin` folder.
21-
22-
So from your command line:
23-
24-
```bash
25-
# Clone this repository
26-
$ git clone https://github.com/kdzwinel/betwixt.git
27-
# Go into the repository
28-
$ cd betwixt
29-
# Install nodeJS dependencies
30-
$ npm install
31-
```
32-
33-
#### Linux
34-
35-
```bash
36-
npm run build:linux
37-
```
38-
39-
The output directory is `bin/Betwixt-linux-x64`
40-
41-
#### Mac OS X
42-
43-
```bash
44-
npm run build:osx
45-
```
46-
47-
The output directory is `bin/Betwixt-darwin-x64`
48-
49-
#### Windows
50-
51-
```bash
52-
npm run build:win
53-
```
54-
55-
It generates two directories, for 32 and 64 bits architectures. The folders are `bin/Betwixt-win32-ia32` or `bin/Betwixt-win32-x64`
56-
57-
#### Custom build
58-
59-
```bash
60-
npm run build:custom -- --platform=<all, linux, darwin, win32> --arch=<all, x86, x64>
61-
```
62-
63-
If none of this builds mets your requirements, you can use the custom build script.
64-
You can send the `platform` and `arch` that you want to build.
65-
66-
So for example, if you want to build a binary for windows 32 bits only, you can run `npm run build:custom -- --platform=win32 --arch=x86`
11+
Download the [latest release](https://github.com/kdzwinel/betwixt/releases/latest) for your operating system or [build your own bundle](docs/building.md).
6712

6813
## Setting up
6914

docs/building.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
## Building
2+
3+
### Setup
4+
5+
To clone and run this repository you'll need [Git](https://git-scm.com) and [Node.js 4.x+](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com)) installed on your computer. From your command line:
6+
7+
```bash
8+
# Clone this repository
9+
$ git clone https://github.com/kdzwinel/betwixt.git
10+
# Go into the repository
11+
$ cd betwixt
12+
# Install nodeJS dependencies
13+
$ npm install
14+
```
15+
16+
You can run Betwixt right away using `npm start` or create a bundle.
17+
18+
### Bundles
19+
20+
To create bundles you should use included npm build scripts.
21+
22+
#### Linux
23+
24+
```bash
25+
npm run build:linux
26+
```
27+
28+
The output directory is `bin/Betwixt-linux-x64`.
29+
30+
#### Mac OS X
31+
32+
```bash
33+
npm run build:osx
34+
```
35+
36+
The output directory is `bin/Betwixt-darwin-x64`.
37+
38+
#### Windows
39+
40+
```bash
41+
npm run build:win
42+
```
43+
44+
It generates two directories, for 32 and 64 bits architectures. The folders are `bin/Betwixt-win32-ia32` or `bin/Betwixt-win32-x64`
45+
46+
#### Custom build
47+
48+
If none of above builds meets your requirements, you can use the custom build script.
49+
50+
51+
```bash
52+
npm run build:custom -- --platform=<all, linux, darwin, win32> --arch=<all, x86, x64>
53+
```
54+
55+
Adjust `platform` and `arch` parameters to your needs.
56+
57+
For example, if you want to build a binary for windows 32 bits only, you can run `npm run build:custom -- --platform=win32 --arch=x86`.

0 commit comments

Comments
 (0)