2020-07-27 20:13:22 +00:00
|
|
|
+++
|
|
|
|
title = "Building Docspell"
|
|
|
|
weight = 0
|
|
|
|
+++
|
|
|
|
|
2022-01-27 19:23:15 +00:00
|
|
|
# Building
|
2020-07-27 20:13:22 +00:00
|
|
|
|
2021-04-11 14:55:53 +00:00
|
|
|
You must install [sbt](https://scala-sbt.org),
|
|
|
|
[nodejs](https://www.npmjs.com/get-npm) (for the `npm` command) and
|
|
|
|
[Elm](https://elm-lang.org).
|
2020-07-27 20:13:22 +00:00
|
|
|
|
2021-05-31 11:25:57 +00:00
|
|
|
Clone the sources, `cd` into the new directory and run `sbt`. This
|
|
|
|
drops you in the sbt prompt. Then these tasks can be run:
|
2020-07-27 20:13:22 +00:00
|
|
|
|
|
|
|
- `make` to compile all sources (Elm + Scala)
|
|
|
|
- `make-zip` to create zip packages
|
|
|
|
- `make-deb` to create debian packages
|
|
|
|
- `make-tools` to create a zip containing the script in `tools/`
|
|
|
|
- `make-pkg` for a clean compile + building all packages (zip + deb)
|
|
|
|
|
|
|
|
The `zip` and `deb` files can be found afterwards in:
|
|
|
|
|
|
|
|
```
|
|
|
|
modules/restserver/target/universal
|
|
|
|
modules/joex/target/universal
|
|
|
|
```
|