📦 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
Update production backend url
❗ Set backend url path without trailing /
2. Build the app
console
3. Package the app
- Packaging for MacOS can be only done from a native system
- From linux you can package the app for
AppImage
anddeb
format, and Windows ifwine
is installed
Native host
Packages app for native system format
Linux host
AppImage
An .AppImage
file will be generated. If there's any error while trying to open the app try this:
sudo apt install libfuse2 &&
cd release/build/ &&
chmod 777 {generated-app-name}.AppImage &&
./{generated-app-name}.AppImage --no-sandbox
Windows
An .exe
will be generated