Skip to content

📦 Package app

In this section we will cover how to package app for production. After following the steps the generated installer will be placed at Electron/release/build.

1. Update global.ts client data

export const songArchitecture: SongArchitecture = SongArchitecture.BLOB_ARCHITECTURE;

Update production backend url

❗ Set backend url path without trailing /

export const backendBaseUrl: string = 'http://127.0.0.1:8000';

2. Build the app

npm run build

3. Package the app

  • Packaging for MacOS can be only done from a native system
  • From linux you can package the app for AppImage and deb format, and Windows if wine is installed

Native host

Packages app for native system format

npm run package

Linux host

AppImage

npm run package:linux:appimage

Windows

An .exe will be generated

npm run package:win
Deb (not working)
npm run package:linux:deb