Electron

Electron is a tool for building cross-platform desktop apps. I use it.

Alternatives:

Automatically assigning version

For electron-forge, you can get the application version from package.json directly. The build version, assuming you use Git, you can get by executing git rev-parse --short HEAD:

/* forge.config.ts */

import { version } from './package.json';

let gitRevision = require('child_process')
  .execSync('git rev-parse --short HEAD')
  .toString()
  .trim()

const config: ForgeConfig = {
    packagerConfig: {
        asar: true,
        appBundleId: "com.denisdefreyne.blah",
        appCopyright: "© 2024–… Denis Defreyne",
        appVersion: version,
        buildVersion: gitRevision,
    },
    // ...
Note last edited December 2024.