This commit is contained in:
David Baker 2020-02-17 20:25:10 +00:00
parent 1405fe242a
commit 28b17d0ec3
2 changed files with 10 additions and 0 deletions

9
README
View file

@ -59,12 +59,21 @@ This will do a couple of things:
* Run electron-builder to build a package. The package built will match the operating system * Run electron-builder to build a package. The package built will match the operating system
you're running the build process on. you're running the build process on.
If you'd like to build the native modules (for searching in encrypted rooms):
This will take 10 minutes or so, and will require a number of native tools
to be installed, depending on your OS (eg. rust, tcl, make/nmake).
```
yarn run build:native
```
You can also build using docker, which will always produce the linux package: You can also build using docker, which will always produce the linux package:
``` ```
# Run this once to make the docker image # Run this once to make the docker image
yarn run docker:setup yarn run docker:setup
yarn run docker:install yarn run docker:install
# if you want to build the native modules (this will take a while)
yarn run docker:buildnative
yarn run docker:build yarn run docker:build
``` ```

View file

@ -18,6 +18,7 @@
"start": "electron .", "start": "electron .",
"lint": "eslint src/ scripts/ hak/", "lint": "eslint src/ scripts/ hak/",
"build": "yarn run setversion && electron-builder", "build": "yarn run setversion && electron-builder",
"buildnative": "yarn run hak",
"docker:setup": "docker build -t riot-desktop-dockerbuild dockerbuild", "docker:setup": "docker build -t riot-desktop-dockerbuild dockerbuild",
"docker:buildnative": "scripts/in-docker.sh yarn run hak", "docker:buildnative": "scripts/in-docker.sh yarn run hak",
"docker:build": "scripts/in-docker.sh yarn run build", "docker:build": "scripts/in-docker.sh yarn run build",