jan/src-tauri/tauri.conf.json
2025-05-15 17:09:59 +07:00

60 lines
1.5 KiB
JSON

{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "jan-app",
"version": "0.1.0",
"identifier": "jan.ai",
"build": {
"frontendDist": "../web/out",
"devUrl": "http://localhost:3000",
"beforeDevCommand": "yarn dev:web",
"beforeBuildCommand": "yarn build:web"
},
"app": {
"macOSPrivateApi": true,
"windows": [
{
"title": "Jan",
"width": 1000,
"height": 700,
"resizable": true,
"fullscreen": false,
"hiddenTitle": true,
"transparent": true,
"titleBarStyle": "Overlay"
}
],
"security": {
"csp": {
"default-src": "'self' customprotocol: asset: http://localhost:* http://127.0.0.1:* ws://localhost:* ws://127.0.0.1:*",
"connect-src": "ipc: http://ipc.localhost",
"font-src": ["https://fonts.gstatic.com"],
"img-src": "'self' asset: http://asset.localhost blob: data:",
"style-src": "'unsafe-inline' 'self' https://fonts.googleapis.com"
},
"assetProtocol": {
"enable": true,
"scope": {
"requireLiteralLeadingDot": false,
"allow": ["**/*"]
}
}
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"resources": [
"binaries/engines/**/*",
"resources/themes/**/*"
],
"externalBin": ["binaries/cortex-server"]
}
}