aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2022-09-12 18:00:30 -0400
committerAdam <adamdharrison@gmail.com>2022-09-12 18:00:30 -0400
commit951160580529a3498e62381e29725fa320d076bc (patch)
tree7fb4db5ca4a5a80d9b98e7f1f744ebea31178a5c /README.md
parente2e70a0d3b74eca224970ec2023561b59a1b2efd (diff)
downloadlite-xl-plugin-manager-951160580529a3498e62381e29725fa320d076bc.tar.gz
lite-xl-plugin-manager-951160580529a3498e62381e29725fa320d076bc.zip
Added in CI, and added in the ability to cross-compile.
Diffstat (limited to 'README.md')
-rw-r--r--README.md32
1 files changed, 32 insertions, 0 deletions
diff --git a/README.md b/README.md
index 5700b02..6d13985 100644
--- a/README.md
+++ b/README.md
@@ -6,6 +6,24 @@ Can be used by a package manager plugin that works from inside the editor and ca
Releases forthcoming, should be available on Windows, Mac, Linux and FreeBSD.
+## Quickstart
+
+If you have a C compiler, and `git`, and want to compile from scratch, you can do:
+
+```
+git clone git@github.com:adamharrison/lite-xl-plugin-manager.git --shallow-submodules \
+ --recurse-submodules && cd lite-xl-plugin-manager && ./build.sh && ./lpm
+````
+
+If you want to build it quickly, and have the right modules installed, you can do:
+
+```
+./build.sh -lz -lssl -llibgit2
+```
+
+CI is enabled on this repository, so you can grab Windows and Linux builds from the
+`continuous` [release page](https://github.com/adamharrison/lite-xl-plugin-manager/releases/tag/continuous).
+
## Usage
```sh
@@ -17,3 +35,17 @@ lpm add https://github.com/lite-xl/lite-xl-plugins.git
lpm rm https://github.com/lite-xl/lite-xl-plugins.git
```
+
+## Building
+
+### Linux
+
+```
+./build.sh -DLPM_VERSION='"'$VERSION-x86_64-linux-`git rev-parse --short HEAD`'"'
+```
+
+### Linux to Windows
+
+```
+CC=x86_64-w64-mingw32-gcc AR=x86_64-w64-mingw32-gcc-ar WINDRES=x86_64-w64-mingw32-windres GIT2_CONFIGURE="-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DBUILD_CLAR=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_SYSTEM_NAME=Windows -DDLLTOOL=x86_64-w64-mingw32-dlltool" SSL_CONFIGURE=mingw ./build.sh -DLPM_VERSION='"'$VERSION-x86_64-linux-`git rev-parse --short HEAD`'"'
+```