mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
* 🔧 refactor: streamline theme handling and title bar overlay * ✨ feat(titlebar): integrate theme update handling in SimpleTitleBar component * 🔧 chore: move `node-mac-permissions` to optionalDependencies and add TypeScript module declaration * ✨ feat(electron): implement connection drawer state management and enhance auth modal functionality * 🐛 fix(ci): fix Windows PowerShell Start-Job working directory issue Start-Job runs in a separate process with default user directory, causing npm install-isolated to fail. Fixed by setting correct working directory in each job using $using:workingDir. * 🐛 fix(ci): use Start-Process instead of Start-Job for Windows parallel install Start-Job runs in isolated PowerShell process without inheriting PATH, causing pnpm/npm commands to fail. Start-Process inherits environment and provides proper exit code handling. * 🐛 fix(ci): use desktop-build-setup action for Windows build Use the same composite action as other desktop workflows instead of custom PowerShell parallel install which has environment issues. * ✨ feat(menu): enhance context menu with additional options for image and link handling * 🔧 fix(auth-modal): prevent modal from opening during desktop onboarding * ✨ feat(electron): enhance native module handling and improve localization resource loading resolves LOBE-4370 - Added `copyNativeModulesToSource` function to resolve pnpm symlinks for native modules before packaging. - Introduced `getNativeModulesFilesConfig` to explicitly include native modules in the build process. - Updated `electron-builder` configuration to utilize the new functions for better native module management. - Enhanced localization resource loading by splitting JSON files by namespace. * 🐛 fix(lint): use slice instead of substring * 🐛 fix(desktop): include global.d.ts in tsconfig for node-mac-permissions types * 🐛 fix(desktop): add ts-ignore for optional node-mac-permissions module * fix: update ui
115 lines
4.4 KiB
JSON
115 lines
4.4 KiB
JSON
{
|
|
"name": "lobehub-desktop-dev",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"description": "LobeHub Desktop Application",
|
|
"homepage": "https://lobehub.com",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/lobehub/lobe-chat.git"
|
|
},
|
|
"author": "LobeHub",
|
|
"main": "./dist/main/index.js",
|
|
"scripts": {
|
|
"build": "electron-vite build",
|
|
"build-local": "npm run build && electron-builder --dir --config electron-builder.mjs --c.mac.notarize=false -c.mac.identity=null --c.asar=false",
|
|
"build:linux": "npm run build && electron-builder --linux --config electron-builder.mjs --publish never",
|
|
"build:mac": "npm run build && electron-builder --mac --config electron-builder.mjs --publish never",
|
|
"build:mac:local": "npm run build && UPDATE_CHANNEL=nightly electron-builder --mac --config electron-builder.mjs --publish never",
|
|
"build:win": "npm run build && electron-builder --win --config electron-builder.mjs --publish never",
|
|
"dev": "electron-vite dev",
|
|
"dev:static": "cross-env DESKTOP_RENDERER_STATIC=1 npm run electron:dev",
|
|
"electron:dev": "electron-vite dev",
|
|
"electron:run-unpack": "electron .",
|
|
"format": "prettier --write ",
|
|
"i18n": "tsx scripts/i18nWorkflow/index.ts && lobe-i18n",
|
|
"postinstall": "electron-builder install-app-deps",
|
|
"install-isolated": "pnpm install",
|
|
"lint": "npm run lint:ts && npm run lint:style && npm run type-check && npm run lint:circular",
|
|
"lint:circular": "npm run lint:circular:main && npm run lint:circular:packages",
|
|
"lint:circular:main": "dpdm src/**/*.ts --no-warning --no-tree --exit-code circular:1 --no-progress -T true --skip-dynamic-imports circular",
|
|
"lint:circular:packages": "dpdm packages/**/src/**/*.ts --no-warning --no-tree --exit-code circular:1 --no-progress -T true --skip-dynamic-imports circular",
|
|
"lint:md": "remark . --silent --output",
|
|
"lint:style": "stylelint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
"lint:ts": "eslint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
"start": "electron-vite preview",
|
|
"stylelint": "stylelint \"src/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
"test": "vitest --run",
|
|
"type-check": "tsgo --noEmit -p tsconfig.json",
|
|
"typecheck": "tsgo --noEmit -p tsconfig.json",
|
|
"update-server": "sh scripts/update-test/run-test.sh"
|
|
},
|
|
"dependencies": {
|
|
"@napi-rs/canvas": "^0.1.70",
|
|
"electron-updater": "^6.6.2",
|
|
"electron-window-state": "^5.0.3",
|
|
"fetch-socks": "^1.3.2",
|
|
"get-port-please": "^3.2.0",
|
|
"superjson": "^2.2.6"
|
|
},
|
|
"optionalDependencies": {
|
|
"node-mac-permissions": "^2.5.0"
|
|
},
|
|
"devDependencies": {
|
|
"@electron-toolkit/eslint-config-prettier": "^3.0.0",
|
|
"@electron-toolkit/eslint-config-ts": "^3.1.0",
|
|
"@electron-toolkit/preload": "^3.0.2",
|
|
"@electron-toolkit/tsconfig": "^2.0.0",
|
|
"@electron-toolkit/utils": "^4.0.0",
|
|
"@lobechat/desktop-bridge": "workspace:*",
|
|
"@lobechat/electron-client-ipc": "workspace:*",
|
|
"@lobechat/electron-server-ipc": "workspace:*",
|
|
"@lobechat/file-loaders": "workspace:*",
|
|
"@lobehub/i18n-cli": "^1.25.1",
|
|
"@modelcontextprotocol/sdk": "^1.24.3",
|
|
"@t3-oss/env-core": "^0.13.8",
|
|
"@types/async-retry": "^1.4.9",
|
|
"@types/resolve": "^1.20.6",
|
|
"@types/semver": "^7.7.1",
|
|
"@types/set-cookie-parser": "^2.4.10",
|
|
"@typescript/native-preview": "7.0.0-dev.20251210.1",
|
|
"async-retry": "^1.3.3",
|
|
"consola": "^3.4.2",
|
|
"cookie": "^1.1.1",
|
|
"diff": "^8.0.2",
|
|
"electron": "^38.7.2",
|
|
"electron-builder": "^26.0.12",
|
|
"electron-devtools-installer": "^3.2.0",
|
|
"electron-is": "^3.0.0",
|
|
"electron-log": "^5.4.3",
|
|
"electron-store": "^8.2.0",
|
|
"electron-vite": "^4.0.1",
|
|
"es-toolkit": "^1.43.0",
|
|
"eslint": "^8.57.1",
|
|
"execa": "^9.6.1",
|
|
"fast-glob": "^3.3.3",
|
|
"fix-path": "^5.0.0",
|
|
"happy-dom": "^20.0.11",
|
|
"http-proxy-agent": "^7.0.2",
|
|
"https-proxy-agent": "^7.0.6",
|
|
"i18next": "^25.7.2",
|
|
"just-diff": "^6.0.2",
|
|
"prettier": "^3.7.4",
|
|
"remark-cli": "^12.0.1",
|
|
"resolve": "^1.22.11",
|
|
"semver": "^7.7.3",
|
|
"set-cookie-parser": "^2.7.2",
|
|
"stylelint": "^15.11.0",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.9.3",
|
|
"undici": "^7.16.0",
|
|
"uuid": "^13.0.0",
|
|
"vite": "^7.2.7",
|
|
"vitest": "^3.2.4",
|
|
"zod": "^3.25.76"
|
|
},
|
|
"pnpm": {
|
|
"onlyBuiltDependencies": [
|
|
"@napi-rs/canvas",
|
|
"electron",
|
|
"electron-builder",
|
|
"node-mac-permissions"
|
|
]
|
|
}
|
|
}
|