Install cross-env
with npm install -g cross-env
, which is used to support
running the steps below on Windows systems in addition to Mac and Linux systems.
On Mac or Linux, install Wine to enable building Windows desktop clients. On
Mac, use brew install --cask wine-stable
.
The Desktop build will pull in the JavaScript client code, so we'll build that first. These commands should be run from the project root directory.
- Install app dependencies with
yarn install --include=dev
. - Build the app with
cross-env NODE_ENV=staging FIREBASE_URL=FOO API_URL=BAR yarn build
.FIREBASE_URL
should have a trailing slash, whileAPI_URL
should not.
Once this is done, the compiled app will be located in dist/src/
.
These commands should be run from the desktop/
directory, which has its own
dependencies and scripts.
- Install desktop dependencies with
yarn install --include=dev
. - Run
yarn build:all
to build the staging clients. To build production clients, useyarn build:all:production
. Clients will be indist/build
. - To run the newly-built app, use
yarn start:mac
,yarn:start:linux
, oryarn start:windows
. - Run
yarn zip:all
to compress all available desktop clients.
- The Linux build depends on the
libgconf-2-4
package.