-
Notifications
You must be signed in to change notification settings - Fork 0
Building
We'll go through how to set up Lime for development here. If you have trouble, try the Troubleshooting page, or one of the platform specific instruction sets below.
The instructions here should be complete (if missing some platform specific details), and are periodically updated by the maintainers. Specific instructions exist for certain platforms, but they are frequently out of date, so use with caution.
- Arch Linux
- CentOs 7
- Debian (Sid)
- Fedora 21
- macOS
- Nix
- Raspberry Pi 2
- Ubuntu 14.04
- Ubuntu 16.04
- Vagrant
- Windows
You will need the following installed before you start:
- Git
- Go 1.5
- Python 3.5
- Oniguruma
You should also make yourself familiar with writing code in Go.
We also use Glide to pin Go dependencies, but it can be considered optional (and these instructions won't use it).
Lime Text is component based, but the core package that all frontends rely on is the backend.
Go get the backend, making sure all dependencies are up to date.
go get -u github.com/limetext/backend/...
Now make sure it installed correctly by running the tests.
cd $GOPATH/src/github.com/limetext/backend
make test
There are currently three frontends to work on. Our main focus right now is the QML frontend, but there is also an HTML frontend as well as a termbox frontend in development.
To run the QML frontend, you'll also need Qt 5 installed.
Go get the QML frontend.
go get github.com/limetext/lime-qml/main/...
You also need to init and update all the submodules again.
cd $GOPATH/src/github.com/limetext/lime-qml
git submodule update --init --recursive
To build and run:
cd $GOPATH/src/github.com/limetext/lime-qml/main
go build
./main
Press Ctrl / Cmd + Q to quit.
Go get the termbox frontend.
go get github.com/limetext/lime-termbox/main/...
You also need to init and update all the submodules again.
cd $GOPATH/src/github.com/limetext/lime-termbox
git submodule update --init --recursive
To build and run:
cd $GOPATH/src/github.com/limetext/lime-termbox/main
go build
./main main.go
Press Ctrl / Cmd + Q to quit.
Go get the HTML frontend.
go get github.com/limetext/lime-html/main/...
You also need to init and update all the submodules again.
cd $GOPATH/src/github.com/limetext/lime-html
git submodule update --init --recursive
To build and run:
cd $GOPATH/src/github.com/limetext/lime-html/main
go build
./main
This starts a webserver listening on localhost:8080
. Point your browser there.