chore: update in preparation for production mode

This commit is contained in:
Matthew Raymer
2025-02-13 07:29:08 +00:00
parent 16bc47921d
commit 12025d6f21
3 changed files with 61 additions and 32 deletions

View File

@@ -42,24 +42,46 @@ To build for web deployment:
## Desktop Build (Electron)
To build the desktop application:
### Building for Linux
0. You must web build first:
1. First build the web assets:
```bash
npm run build
```
1. Run the Electron build:
2. Package the Electron app for Linux:
```bash
npm run build:electron
# For AppImage (recommended)
npm run electron:build-linux
# For .deb package
npm run electron:build-linux-deb
```
2. The built files will be in `dist-electron`.
2. The packaged applications will be in `dist-electron-packages/`:
- AppImage: `dist-electron-packages/TimeSafari-x.x.x.AppImage`
- DEB: `dist-electron-packages/timesafari_x.x.x_amd64.deb`
3. To run the desktop app:
```bash
npx electron dist-electron
```
### Running the Packaged App
- AppImage: Make executable and run
```bash
chmod +x dist-electron-packages/TimeSafari-*.AppImage
./dist-electron-packages/TimeSafari-*.AppImage
```
- DEB: Install and run
```bash
sudo dpkg -i dist-electron-packages/timesafari_*_amd64.deb
timesafari
```
### Development Testing
For testing the Electron build before packaging:
```bash
npm run electron:dev
```
## Mobile Builds (Capacitor)