Follow-up from #334 ## Summary - align the Electron package `build.appId` with the runtime identifier already used in `app.setAppUserModelId(...)` - remove the mismatch between packaged desktop identity and runtime desktop identity - keep the change narrowly scoped to identifier consistency only ## Validation - verified the previous mismatch in `packages/electron-app/package.json` vs `packages/electron-app/electron/main/main.ts` - updated the packaging id to match the runtime id exactly
166 lines
4.7 KiB
JSON
166 lines
4.7 KiB
JSON
{
|
|
"name": "@neuralnomads/codenomad-electron-app",
|
|
"version": "0.14.0",
|
|
"description": "CodeNomad - AI coding assistant",
|
|
"license": "MIT",
|
|
"author": {
|
|
"name": "Neural Nomads",
|
|
"email": "codenomad@neuralnomads.ai"
|
|
},
|
|
"type": "module",
|
|
"main": "dist/main/main.js",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/NeuralNomadsAI/CodeNomad.git"
|
|
},
|
|
"homepage": "https://github.com/NeuralNomadsAI/CodeNomad",
|
|
"scripts": {
|
|
"dev": "npm run dev:info",
|
|
"dev:info": "cross-env CLI_LOG_LEVEL=info electron-vite dev",
|
|
"dev:debug": "cross-env CLI_LOG_LEVEL=debug electron-vite dev",
|
|
"dev:trace": "cross-env CLI_LOG_LEVEL=trace electron-vite dev",
|
|
"dev:electron": "NODE_ENV=development ELECTRON_ENABLE_LOGGING=1 NODE_OPTIONS=\"--import tsx\" electron electron/main/main.ts",
|
|
"prepare:resources": "node scripts/prepare-resources.js",
|
|
"prebuild": "npm run prepare:resources",
|
|
"build": "electron-vite build",
|
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
"preview": "electron-vite preview",
|
|
"build:binaries": "node scripts/build.js",
|
|
"build:mac": "node scripts/build.js mac",
|
|
"build:mac-x64": "node scripts/build.js mac-x64",
|
|
"build:mac-arm64": "node scripts/build.js mac-arm64",
|
|
"build:win": "node scripts/build.js win",
|
|
"build:win-arm64": "node scripts/build.js win-arm64",
|
|
"build:linux": "node scripts/build.js linux",
|
|
"build:linux-arm64": "node scripts/build.js linux-arm64",
|
|
"build:linux-rpm": "node scripts/build.js linux-rpm",
|
|
"build:all": "node scripts/build.js all",
|
|
"prepackage:mac": "npm run prepare:resources",
|
|
"package:mac": "electron-builder --mac",
|
|
"prepackage:win": "npm run prepare:resources",
|
|
"package:win": "electron-builder --win",
|
|
"prepackage:linux": "npm run prepare:resources",
|
|
"package:linux": "electron-builder --linux"
|
|
},
|
|
"dependencies": {
|
|
"@neuralnomads/codenomad": "file:../server",
|
|
"@codenomad/ui": "file:../ui",
|
|
"yaml": "^2.4.2"
|
|
},
|
|
"devDependencies": {
|
|
"7zip-bin": "^5.2.0",
|
|
"app-builder-bin": "^4.2.0",
|
|
"cross-env": "^7.0.3",
|
|
"electron": "39.0.0",
|
|
"electron-builder": "^24.0.0",
|
|
"electron-vite": "4.0.1",
|
|
"png2icons": "^2.0.1",
|
|
"pngjs": "^7.0.0",
|
|
"tsx": "^4.20.6",
|
|
"typescript": "^5.3.0",
|
|
"vite": "^5.0.0",
|
|
"vite-plugin-solid": "^2.10.0"
|
|
},
|
|
"build": {
|
|
"appId": "ai.neuralnomads.codenomad.client",
|
|
"productName": "CodeNomad",
|
|
"directories": {
|
|
"output": "release",
|
|
"buildResources": "electron/resources"
|
|
},
|
|
"files": [
|
|
"dist/**/*",
|
|
"package.json"
|
|
],
|
|
"extraResources": [
|
|
{
|
|
"from": "electron/resources",
|
|
"to": "",
|
|
"filter": [
|
|
"!icon.icns",
|
|
"!icon.ico"
|
|
]
|
|
},
|
|
{
|
|
"from": "../server/dist/opencode-config",
|
|
"to": "opencode-config"
|
|
}
|
|
],
|
|
"mac": {
|
|
"entitlements": "electron/resources/entitlements.mac.plist",
|
|
"entitlementsInherit": "electron/resources/entitlements.mac.plist",
|
|
"extendInfo": {
|
|
"NSMicrophoneUsageDescription": "CodeNomad needs microphone access for speech-to-text prompt input.",
|
|
"NSLocalNetworkUsageDescription": "CodeNomad needs local network access to connect to locally hosted AI and speech services."
|
|
},
|
|
"category": "public.app-category.developer-tools",
|
|
"target": [
|
|
{
|
|
"target": "zip",
|
|
"arch": [
|
|
"x64",
|
|
"arm64"
|
|
]
|
|
}
|
|
],
|
|
"artifactName": "CodeNomad-${version}-${os}-${arch}.${ext}",
|
|
"icon": "electron/resources/icon.icns"
|
|
},
|
|
"dmg": {
|
|
"contents": [
|
|
{
|
|
"x": 130,
|
|
"y": 220
|
|
},
|
|
{
|
|
"x": 410,
|
|
"y": 220,
|
|
"type": "link",
|
|
"path": "/Applications"
|
|
}
|
|
]
|
|
},
|
|
"win": {
|
|
"target": [
|
|
{
|
|
"target": "zip",
|
|
"arch": [
|
|
"x64",
|
|
"arm64"
|
|
]
|
|
}
|
|
],
|
|
"artifactName": "CodeNomad-${version}-${os}-${arch}.${ext}",
|
|
"icon": "electron/resources/icon.ico"
|
|
},
|
|
"nsis": {
|
|
"oneClick": false,
|
|
"allowToChangeInstallationDirectory": true,
|
|
"createDesktopShortcut": true,
|
|
"createStartMenuShortcut": true
|
|
},
|
|
"linux": {
|
|
"target": [
|
|
{
|
|
"target": "zip",
|
|
"arch": [
|
|
"x64",
|
|
"arm64"
|
|
]
|
|
},
|
|
{
|
|
"target": "AppImage",
|
|
"arch": [
|
|
"x64",
|
|
"arm64"
|
|
]
|
|
}
|
|
],
|
|
"artifactName": "CodeNomad-${version}-${os}-${arch}.${ext}",
|
|
"category": "Development",
|
|
"icon": "electron/resources/icon.png"
|
|
}
|
|
},
|
|
"private": true
|
|
}
|