a0017f2036
Root cause of "the fix works on mobile but not on desktop/web": nothing was wrong with the code — the desktop app now CLOSES TO TRAY, so it can run for weeks on the page it loaded on day one and never re-fetch after a deploy. There was also no way to force it off a stale page (no menu bar → no reload accelerator). - Server: GET /api/build returns home.html's __BUILD marker. - Client: polls it (boot, on focus/visibility, every 10 min); when the server's build differs from the running one, shows a branded "A new version is available — Refresh" banner. Settings gains an always-available "Refresh app" with the current build shown. - hardReloadApp(): in the browser it unregisters service workers + clears CacheStorage then reloads cache-busted; in the shell it calls the native hard reload. - Desktop: hard-reload IPC (clears the session HTTP cache + reloadIgnoringCache), wired to Ctrl+R (reload), Ctrl+Shift+R / F5 (hard reload), and a "Refresh app (get latest)" tray item. Previously there was literally no way to clear the cache from the app. 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.17",
|
|
"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"
|
|
}
|
|
}
|
|
}
|