-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from kdzwinel/build-process
Move building instructions to a separate doc to keep main readme short & sweet.
- Loading branch information
Showing
2 changed files
with
59 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
## Building | ||
|
||
### Setup | ||
|
||
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: | ||
|
||
```bash | ||
# Clone this repository | ||
$ git clone https://github.com/kdzwinel/betwixt.git | ||
# Go into the repository | ||
$ cd betwixt | ||
# Install nodeJS dependencies | ||
$ npm install | ||
``` | ||
|
||
You can run Betwixt right away using `npm start` or create a bundle. | ||
|
||
### Bundles | ||
|
||
To create bundles you should use included npm build scripts. | ||
|
||
#### Linux | ||
|
||
```bash | ||
npm run build:linux | ||
``` | ||
|
||
The output directory is `bin/Betwixt-linux-x64`. | ||
|
||
#### Mac OS X | ||
|
||
```bash | ||
npm run build:osx | ||
``` | ||
|
||
The output directory is `bin/Betwixt-darwin-x64`. | ||
|
||
#### Windows | ||
|
||
```bash | ||
npm run build:win | ||
``` | ||
|
||
It generates two directories, for 32 and 64 bits architectures. The folders are `bin/Betwixt-win32-ia32` or `bin/Betwixt-win32-x64` | ||
|
||
#### Custom build | ||
|
||
If none of above builds meets your requirements, you can use the custom build script. | ||
|
||
|
||
```bash | ||
npm run build:custom -- --platform=<all, linux, darwin, win32> --arch=<all, x86, x64> | ||
``` | ||
|
||
Adjust `platform` and `arch` parameters to your needs. | ||
|
||
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`. |