gitbutler/crates/gitbutler-tauri/tauri.conf.json

78 lines
2.1 KiB
JSON
Raw Normal View History

2023-01-31 17:55:57 +03:00
{
2024-01-29 19:08:13 +03:00
"build": {
"beforeDevCommand": "pnpm dev:internal-tauri",
"beforeBuildCommand": "[ $CI = true ] || pnpm build:desktop -- --mode development",
2024-01-29 19:08:13 +03:00
"devPath": "http://localhost:1420",
"distDir": "../../apps/desktop/build",
"withGlobalTauri": false
2024-01-29 19:08:13 +03:00
},
"package": {
"productName": "GitButler Dev"
},
"tauri": {
"allowlist": {
"fs": {
"readFile": true,
"scope": ["$APPCACHE/archives/*", "$RESOURCE/_up_/scripts/*"]
},
"dialog": {
"open": true
},
2024-03-10 20:36:16 +03:00
"os": {
"all": true
},
2024-01-29 19:08:13 +03:00
"protocol": {
"asset": true,
"assetScope": ["$APPCACHE/images/*"]
},
"process": {
"relaunch": true
},
"window": {
"startDragging": true,
"maximize": true,
"unmaximize": true
},
"path": {
"all": true
},
2024-03-10 20:36:16 +03:00
"http": {
"all": true,
"request": true,
2024-05-18 18:51:20 +03:00
"scope": [
"https://api.anthropic.com/v1/messages",
"http://127.0.0.1:11434/api/chat",
"http://127.0.0.1:11434/api/generate",
"http://127.0.0.1:11434/api/embeddings"
]
},
"shell": {
"open": true
2024-03-10 20:36:16 +03:00
}
2024-01-29 19:08:13 +03:00
},
"bundle": {
"active": true,
"identifier": "com.gitbutler.app.dev",
"category": "DeveloperTool",
2024-04-16 19:12:41 +03:00
"copyright": "Copyright © 2023-2024 GitButler. All rights reserved.",
2024-01-29 19:08:13 +03:00
"icon": [
"icons/dev/32x32.png",
"icons/dev/128x128.png",
"icons/dev/128x128@2x.png",
"icons/dev/icon.icns",
"icons/dev/icon.ico"
],
2024-06-25 21:44:11 +03:00
"targets": ["app", "dmg", "appimage", "deb", "rpm", "updater", "msi"]
2024-01-29 19:08:13 +03:00
},
"security": {
"csp": {
"default-src": "'self'",
"img-src": "'self' asset: https://asset.localhost data: tauri://localhost https://avatars.githubusercontent.com https://*.gitbutler.com https://gitbutler-public.s3.amazonaws.com https://*.gravatar.com https://lh3.googleusercontent.com",
2024-03-03 22:16:29 +03:00
"connect-src": "'self' https://eu.posthog.com https://eu.i.posthog.com https://app.gitbutler.com https://o4504644069687296.ingest.sentry.io ws://localhost:7703 https://github.com https://api.github.com",
"script-src": "'self' https://eu.posthog.com https://eu.i.posthog.com",
2024-01-29 19:08:13 +03:00
"style-src": "'self' 'unsafe-inline'"
}
}
}
2023-01-31 17:55:57 +03:00
}