Skip to content

Commit

Permalink
Add publish (neo-project#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
Celia18305 authored and PeterLinX committed Jun 5, 2018
1 parent 4c7c1c6 commit 4eb90a3
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
55 changes: 55 additions & 0 deletions en-us/node/cli/publish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Publishing NEO CLI Source

You can download and compile the Neo-CLI source directly from Github.

## Setting up the environment

Running of an NEO node requires installation of .NET Core Runtime, version 2.0 or above.

For **Linux (ubuntu 17.10)**, install [.NET Core Runtime](https://www.microsoft.com/net/download/linux).

For **Windows 7** and **Windows 10**, install [.NET Core](<https://www.microsoft.com/net/download/windows>) and [.NET Framework](https://www.microsoft.com/net/download/windows).

For **macOS**, install [.NET Core](https://www.microsoft.com/net/download/macos ).


## Downloading NEO-CLI source

Clone the neo-cli repository from Github: <https://github.com/neo-project/neo-cli.git>

## Compiling from source

To publish the NEO-CLI source, run the following command:

For **Linux**:

```
cd neo-cli
dotnet restore
dotnet publish -c release -r linux-x64
```

For **Windows 7**:

```
cd neo-cli
dotnet restore
dotnet publish -c release -r win7-x64
```

For **Windows 10**:

```
cd neo-cli
dotnet restore
dotnet publish -c release -r win10-x64
```

For **macOS**:

```
cd neo-cli
dotnet restore
dotnet publish -c release -r osx-x64
```

2 changes: 2 additions & 0 deletions en-us/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
- name: NEO-CLI
href: node/cli/cli.md
items:
- name: Publish
href: node/cli/publish.md
- name: Installation
href: node/cli/setup.md
- name: NEO-CLI Command line
Expand Down

0 comments on commit 4eb90a3

Please sign in to comment.