desktop-application
desktop-application copied to clipboard
Electron-based desktop time tracker for Cattr
Cattr Desktop App
Electron desktop application for Cattr
Installation
- Clone this repository
- Install dependencies via
npm install - Run webpack via
npm run build-watch(ornpm run build-developmentif you don't want to watch files for changes) - When build completes, run
npm run devto launch client in development mode
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).
Build
- Ensure that all necessary dependencies are installed
- Ensure that
package.jsonandsrc/base/config.jscontains right configuration - Build application in production mode via
npm run build-production - Build executable for your favourite platform (output directory is /target).
Upload Sentry sourcemaps
- Copy
.sentry.main.exampleto.sentry.main, then fill with configuration for Main process project. - Copy
.sentry.renderer.exampleto.sentry.renderer.example, then fill with configuration for Renderer process project. - During release preparation, run
npm run build-releaseto build & submit release files to Sentry.
How to build executable?
- macOS:
npm run package-macwill produce signed & notarized DMG - Linux:
npm run package-linuxwill produce Tarball, DPKG and AppImage - Windows:
npm run package-windowswill 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