Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CALLChain authored Dec 27, 2019
1 parent 3a2a8a9 commit f3094e2
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,56 +11,53 @@ readline

In Centos system

`
```bash
yum install snappy

yum install libreadline-dev
`
```

In Ubuntu system

`
```bash
apt install libsnappy-dev

apt install libreadline-dev
`
```

In MacOS system

`
```bash
brew install libsnappy-dev

brew install libreadline-dev
`
```

## Build

1. Pull lua virtual machine code

`
```
git submodule update --init --recursive
`
```

2. Build luac and zipluac command, collect these commands to tools directory. Then tools directory is build output

`
```
./build.sh
`
```

## Usage

In tools directory

`
```
./compile.sh [your contract lua file name]
`
```

The luac.out.hex file is output file.

Compile example

`
```
./compile.sh ../examples/hello.lua
`
```


0 comments on commit f3094e2

Please sign in to comment.