30eaf37773
The app closes to tray, so it kept running on the old version and only checked on a fresh launch.
Now: (1) check for updates on EVERY window show (X-to-tray then reopen, taskbar, relaunch via
second-instance) via win.on('show'), throttled 1/10min; (2) explicit autoInstallOnAppQuit=true so
a downloaded update installs on the next real quit / PC restart even if the user never clicks
"Restart now"; (3) native notification when an update finishes downloading while hidden in the
tray. The existing 6-hour background timer is unchanged and still runs regardless of window state.
Also carries the 0.1.18 downloads-to-Downloads-folder change.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
60 lines
1.3 KiB
JSON
60 lines
1.3 KiB
JSON
{
|
|
"name": "biz-connect-desktop",
|
|
"version": "0.1.19",
|
|
"description": "Biz Connect technician desktop client — loads the Connect web UI with native screen capture",
|
|
"author": {
|
|
"name": "BizGaze",
|
|
"email": "support@bizgaze.com"
|
|
},
|
|
"main": "main.js",
|
|
"scripts": {
|
|
"start": "electron .",
|
|
"dist": "electron-builder"
|
|
},
|
|
"dependencies": {
|
|
"electron-updater": "^6.3.9"
|
|
},
|
|
"optionalDependencies": {
|
|
"@nut-tree-fork/nut-js": "^4.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"electron": "^31.0.0",
|
|
"electron-builder": "^24.13.3"
|
|
},
|
|
"build": {
|
|
"appId": "com.bizgaze.connect.desktop",
|
|
"productName": "Biz Connect",
|
|
"directories": {
|
|
"buildResources": "build",
|
|
"output": "dist"
|
|
},
|
|
"publish": [
|
|
{
|
|
"provider": "generic",
|
|
"url": "https://remote.bizgaze.com/downloads/"
|
|
}
|
|
],
|
|
"win": {
|
|
"target": "nsis",
|
|
"icon": "build/icon.ico"
|
|
},
|
|
"nsis": {
|
|
"oneClick": true,
|
|
"perMachine": false,
|
|
"createDesktopShortcut": true,
|
|
"createStartMenuShortcut": true,
|
|
"shortcutName": "Biz Connect",
|
|
"runAfterFinish": true
|
|
},
|
|
"mac": {
|
|
"target": "dmg",
|
|
"category": "public.app-category.business",
|
|
"icon": "build/icon.ico"
|
|
},
|
|
"linux": {
|
|
"target": "AppImage",
|
|
"category": "Network"
|
|
}
|
|
}
|
|
}
|