mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 23:02:31 +03:00
68f0a3c288
Co-authored-by: Yerke Tulibergenov <yerke@squareup.com> Co-authored-by: Caleb Owens <caleb@gitbutler.com> Co-authored-by: Pavel Laptev <pawellaptew@gmail.com> Co-authored-by: Mattias Granlund <mtsgrd@gmail.com> Co-authored-by: Sebastian Thiel <sebastian.thiel@icloud.com> Co-authored-by: GitButler <gitbutler@gitbutler.com>
75 lines
2.0 KiB
JSON
75 lines
2.0 KiB
JSON
{
|
|
"build": {
|
|
"beforeDevCommand": "pnpm dev:internal-tauri",
|
|
"beforeBuildCommand": "[ $CI = true ] || pnpm build:desktop -- --mode development",
|
|
"devPath": "http://localhost:1420",
|
|
"distDir": "../../apps/desktop/build",
|
|
"withGlobalTauri": false
|
|
},
|
|
"package": {
|
|
"productName": "GitButler Dev"
|
|
},
|
|
"tauri": {
|
|
"allowlist": {
|
|
"fs": {
|
|
"readFile": true,
|
|
"scope": ["$APPCACHE/archives/*", "$RESOURCE/_up_/scripts/*"]
|
|
},
|
|
"dialog": {
|
|
"open": true
|
|
},
|
|
"os": {
|
|
"all": true
|
|
},
|
|
"protocol": {
|
|
"asset": true,
|
|
"assetScope": ["$APPCACHE/images/*"]
|
|
},
|
|
"process": {
|
|
"relaunch": true
|
|
},
|
|
"window": {
|
|
"startDragging": true,
|
|
"maximize": true,
|
|
"unmaximize": true
|
|
},
|
|
"path": {
|
|
"all": true
|
|
},
|
|
"http": {
|
|
"all": true,
|
|
"request": true,
|
|
"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"
|
|
]
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"identifier": "com.gitbutler.app.dev",
|
|
"category": "DeveloperTool",
|
|
"copyright": "Copyright © 2023-2024 GitButler. All rights reserved.",
|
|
"icon": [
|
|
"icons/dev/32x32.png",
|
|
"icons/dev/128x128.png",
|
|
"icons/dev/128x128@2x.png",
|
|
"icons/dev/icon.icns",
|
|
"icons/dev/icon.ico"
|
|
],
|
|
"targets": ["app", "dmg", "appimage", "deb", "rpm", "updater", "msi"]
|
|
},
|
|
"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",
|
|
"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",
|
|
"style-src": "'self' 'unsafe-inline'"
|
|
}
|
|
}
|
|
}
|
|
}
|