mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-29 19:35:20 +02:00
feat(app): update product name to 'SurfSense' and implement server shutdown on app quit
This commit is contained in:
parent
98e3950dc8
commit
7be4231ad4
2 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "surfsense-desktop",
|
||||
"productName": "SurfSense",
|
||||
"version": "0.0.25",
|
||||
"description": "SurfSense Desktop App",
|
||||
"main": "dist/main.js",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { app } from 'electron';
|
||||
|
||||
import { registerGlobalErrorHandlers, showErrorDialog } from './modules/errors';
|
||||
import { startNextServer } from './modules/server';
|
||||
import { startNextServer, stopNextServer } from './modules/server';
|
||||
import { createMainWindow, getMainWindow, markQuitting } from './modules/window';
|
||||
import { setupDeepLinks, handlePendingDeepLink, hasPendingDeepLink } from './modules/deep-links';
|
||||
import { setupAutoUpdater } from './modules/auto-updater';
|
||||
|
|
@ -19,6 +19,7 @@ import {
|
|||
} from './modules/auto-launch';
|
||||
|
||||
registerGlobalErrorHandlers();
|
||||
app.setName('SurfSense');
|
||||
|
||||
if (!setupDeepLinks()) {
|
||||
app.quit();
|
||||
|
|
@ -93,6 +94,7 @@ app.on('will-quit', async (e) => {
|
|||
e.preventDefault();
|
||||
unregisterQuickAsk();
|
||||
unregisterFolderWatcher();
|
||||
stopNextServer();
|
||||
destroyTray();
|
||||
await shutdownAnalytics();
|
||||
app.exit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue