Skip to content

Commit 3eeb60a

Browse files
committed
chore: update package.json to include repository information and reorganize dependencies, add update-electron-app for auto-updates in main.ts, and reflect changes in pnpm-lock.yaml
1 parent a76dc1d commit 3eeb60a

3 files changed

Lines changed: 55 additions & 20 deletions

File tree

package.json

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,31 @@
1919
"email": "s@laplace.live"
2020
},
2121
"license": "AGPL-3.0",
22+
"repository": {
23+
"type": "git",
24+
"url": "https://github.com/laplace-live/comet.git"
25+
},
26+
"dependencies": {
27+
"@base-ui/react": "^1.1.0",
28+
"@dnd-kit/core": "^6.3.1",
29+
"@dnd-kit/sortable": "^10.0.0",
30+
"@nuintun/qrcode": "^5.0.2",
31+
"@tabler/icons-react": "^3.36.1",
32+
"class-variance-authority": "^0.7.1",
33+
"clsx": "^2.1.1",
34+
"dayjs": "^1.11.19",
35+
"electron-squirrel-startup": "^1.0.1",
36+
"electron-store": "^11.0.2",
37+
"lucide-react": "^0.562.0",
38+
"protobufjs": "^7.5.4",
39+
"react": "^19.2.3",
40+
"react-dom": "^19.2.3",
41+
"react-resizable-panels": "^3.0.6",
42+
"tailwind-merge": "^3.4.0",
43+
"update-electron-app": "^3.1.2",
44+
"ws": "^8.19.0",
45+
"zustand": "^5.0.10"
46+
},
2247
"devDependencies": {
2348
"@biomejs/biome": "^2.3.11",
2449
"@electron-forge/cli": "^7.11.1",
@@ -45,25 +70,5 @@
4570
"typescript": "^5.9.3",
4671
"vite": "^5.4.21"
4772
},
48-
"dependencies": {
49-
"@base-ui/react": "^1.1.0",
50-
"@dnd-kit/core": "^6.3.1",
51-
"@dnd-kit/sortable": "^10.0.0",
52-
"@nuintun/qrcode": "^5.0.2",
53-
"@tabler/icons-react": "^3.36.1",
54-
"class-variance-authority": "^0.7.1",
55-
"clsx": "^2.1.1",
56-
"dayjs": "^1.11.19",
57-
"electron-squirrel-startup": "^1.0.1",
58-
"electron-store": "^11.0.2",
59-
"lucide-react": "^0.562.0",
60-
"protobufjs": "^7.5.4",
61-
"react": "^19.2.3",
62-
"react-dom": "^19.2.3",
63-
"react-resizable-panels": "^3.0.6",
64-
"tailwind-merge": "^3.4.0",
65-
"ws": "^8.19.0",
66-
"zustand": "^5.0.10"
67-
},
6873
"packageManager": "pnpm@10.28.0+sha512.05df71d1421f21399e053fde567cea34d446fa02c76571441bfc1c7956e98e363088982d940465fd34480d4d90a0668bc12362f8aa88000a64e83d0b0e47be48"
6974
}

pnpm-lock.yaml

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import path, { dirname } from 'node:path'
22
import { fileURLToPath } from 'node:url'
33
import { app, BrowserWindow, clipboard, ipcMain, Menu, Notification, nativeImage, shell } from 'electron'
44
import started from 'electron-squirrel-startup'
5+
import { updateElectronApp } from 'update-electron-app'
56

67
import { registerBilibiliIpcHandlers } from './api/bilibili'
78
import { cleanupBroadcastWebSocket, initBroadcastWebSocket } from './api/broadcast-websocket'
@@ -24,6 +25,12 @@ if (started) {
2425
app.quit()
2526
}
2627

28+
// Configure auto-updates
29+
updateElectronApp({
30+
notifyUser: false,
31+
logger: console,
32+
})
33+
2734
// Set AppUserModelId for Windows - required for proper notification behavior
2835
// This must match the Squirrel installer name for notifications to work correctly
2936
if (process.platform === 'win32') {

0 commit comments

Comments
 (0)