npm install --global yarn # (only if you don’t already have `yarn`)
npm install --global yarn # (only if you don’t already have `yarn`)
@ -208,7 +208,7 @@ is no automatic restart mechanism for the entire application.
You can keep the developer tools open (`View > Toggle Developer Tools`) and press <kbd>Cmd</kbd> + <kbd>R</kbd> (macOS) or <kbd>Ctrl</kbd> + <kbd>R</kbd> (Windows & Linux) to reload the application frontend.
You can keep the developer tools open (`View > Toggle Developer Tools`) and press <kbd>Cmd</kbd> + <kbd>R</kbd> (macOS) or <kbd>Ctrl</kbd> + <kbd>R</kbd> (Windows & Linux) to reload the application frontend.
```shell
```sh
# runs until you stop it, re-generating built assets on file changes.
# runs until you stop it, re-generating built assets on file changes.
# Once this command is waiting for changes, you will need to run in another terminal `yarn build:workers` to fix the "exports undefined" error on start.
# Once this command is waiting for changes, you will need to run in another terminal `yarn build:workers` to fix the "exports undefined" error on start.
@ -240,14 +240,14 @@ This user profile folder will change directories from `[PROFILE_PATH]/Session-{e
There are a few scripts which you can use:
There are a few scripts which you can use:
```shell
```sh
yarn start-prod # Start production but in development mode
yarn start-prod # Start production but in development mode
MULTI=1 yarn start-prod # Start another instance of production
MULTI=1 yarn start-prod # Start another instance of production
```
```
For more than 2 clients, you may run the above command with `MULTI` set before them. For example, running:
For more than 2 clients, you may run the above command with `MULTI` set before them. For example, running:
```shell
```sh
MULTI=alice yarn start-prod
MULTI=alice yarn start-prod
```
```
@ -338,7 +338,7 @@ see how they did things.
You can build a production binary by running the following:
You can build a production binary by running the following:
@ -22,7 +22,7 @@ Once you have your `Developer ID Application` you need to export it into a `.p12
We need to Base64 encode this file, so run the following command:
We need to Base64 encode this file, so run the following command:
```shell
```sh
base64 -i certificate.p12 -o encoded.txt
base64 -i certificate.p12 -o encoded.txt
```
```
@ -53,11 +53,11 @@ Follow the instructions in [Contributing.md](CONTRIBUTING.md) to set up your dev
The [rpm](https://rpm.org) package is required for running the build-release script on Linux. Run the appropriate command to install the `rpm` package:
The [rpm](https://rpm.org) package is required for running the build-release script on Linux. Run the appropriate command to install the `rpm` package:
```shell
```sh
sudo pacman -S rpm # Arch
sudo pacman -S rpm # Arch
```
```
```shell
```sh
sudo apt install rpm # Ubuntu/Debian
sudo apt install rpm # Ubuntu/Debian
```
```
@ -72,7 +72,7 @@ You will also need an [App-specific password](https://support.apple.com/en-al/HT
@ -34,7 +34,7 @@ Want to help us translate Session into your language? You can do so at https://g
Add Jason's GPG key. Jason Rhinelander, a member of the [Session Technology Foundation](https://session.foundation/) and is the current signer for all Session Desktop releases. His GPG key can be found on his GitHub and other sources.
Add Jason's GPG key. Jason Rhinelander, a member of the [Session Technology Foundation](https://session.foundation/) and is the current signer for all Session Desktop releases. His GPG key can be found on his GitHub and other sources.
```shell
```sh
wget https://github.com/jagerman.gpg
wget https://github.com/jagerman.gpg
gpg --import jagerman.gpg
gpg --import jagerman.gpg
```
```
@ -43,7 +43,7 @@ gpg --import jagerman.gpg
Get the signed hashes for this release. `SESSION_VERSION` needs to be updated for the release you want to verify.
Get the signed hashes for this release. `SESSION_VERSION` needs to be updated for the release you want to verify.