Electron desktop application for Cattr
- Clone this repository
- Install dependencies via
npm install
- Run webpack via
npm run build-watch
(ornpm run build-development
if you don't want to watch files for changes) - When build completes, run
npm run dev
to launch client in development mode
There are two major differences between development and production modes:
- Automatical error reporting disabled in development mode.
- Development installation uses different keychain service name and application folder path (with "-develop" suffix).
- Ensure that all necessary dependencies are installed
- Ensure that
package.json
andsrc/base/config.js
contains right configuration - Build application in production mode via
npm run build-production
- Build executable for your favourite platform (output directory is /target).
- Copy
.sentry.main.example
to.sentry.main
, then fill with configuration for Main process project. - Copy
.sentry.renderer.example
to.sentry.renderer.example
, then fill with configuration for Renderer process project. - During release preparation, run
npm run build-release
to build & submit release files to Sentry.
How to build executable?
- macOS:
npm run package-mac
will produce signed & notarized DMG - Linux:
npm run package-linux
will produce Tarball, DPKG and AppImage - Windows:
npm run package-windows
will produce installer and portable executables
Compatibility sheet:
- Host with macOS: can produce builds only for macOS
- Host with Linux: can produce builds for Linux and Windows (using Wine)
- Host with Windows: can produce builds only for Windows