Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 1.36 KB

File metadata and controls

55 lines (44 loc) · 1.36 KB

Project setup

npm install

Compiles and hot-reloads for development

npm run electron:serve

Build for production

npm run build:osx
npm run build:win
npm run build:linux
npm run build:all

Node/OpenSSL error (error:0308010C) when bundling

If you see an error like:

Error: error:0308010C:digital envelope routines::unsupported

This happens with Node.js >= 17 using OpenSSL 3 and webpack 4 (used by vue-cli-plugin-electron-builder).

Switch to Node 16 LTS for development/builds (e.g., with nvm).

Build & publish a new release

# Increment the version number in package.json first
# Note that the version tag needs to start with `v` in order for CI to trigger a new build

git commit -am "<VERSION_NUMBER>"
git tag <VERSION_NUMBER>
git push
git push --tags

# Github will trigger a build. A draft release will be created for review

Lints and fixes files

npm run lint

Generating a new app icon

  1. Install electron-icon-builder globally
  2. Replace the icon in ./src/assets/images/icon/icon.png (must be at least 1024x1024)
  3. Generate icon variants via the command line:
electron-icon-builder --input=src/assets/images/icon/icon.png --output=build/icons --flatten
  1. The new icon will be used once a new build is triggered