mirror of
https://github.com/haexhub/haex-hub.git
synced 2025-12-16 14:10:52 +01:00
- Add lucide and hugeicons to serverBundle collections for local bundling - Add https://tauri.localhost and asset: protocol to CSP directives - Prevents CSP errors and eliminates dependency on Iconify API
99 lines
2.4 KiB
JSON
99 lines
2.4 KiB
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "haex-hub",
|
|
"version": "0.1.4",
|
|
"identifier": "space.haex.hub",
|
|
"build": {
|
|
"beforeDevCommand": "pnpm dev",
|
|
"devUrl": "http://localhost:3003",
|
|
"beforeBuildCommand": "pnpm generate",
|
|
"frontendDist": "../.output/public"
|
|
},
|
|
|
|
"app": {
|
|
"windows": [
|
|
{
|
|
"title": "haex-hub",
|
|
"width": 800,
|
|
"height": 600
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": {
|
|
"default-src": ["'self'", "http://tauri.localhost", "https://tauri.localhost", "asset:", "haex-extension:"],
|
|
"script-src": [
|
|
"'self'",
|
|
"http://tauri.localhost",
|
|
"https://tauri.localhost",
|
|
"asset:",
|
|
"haex-extension:",
|
|
"'wasm-unsafe-eval'",
|
|
"'unsafe-inline'"
|
|
],
|
|
"style-src": [
|
|
"'self'",
|
|
"http://tauri.localhost",
|
|
"https://tauri.localhost",
|
|
"asset:",
|
|
"haex-extension:",
|
|
"'unsafe-inline'"
|
|
],
|
|
"connect-src": [
|
|
"'self'",
|
|
"http://tauri.localhost",
|
|
"haex-extension:",
|
|
"ipc:",
|
|
"http://ipc.localhost",
|
|
"ws://localhost:*"
|
|
],
|
|
"img-src": [
|
|
"'self'",
|
|
"http://tauri.localhost",
|
|
"https://tauri.localhost",
|
|
"asset:",
|
|
"haex-extension:",
|
|
"data:",
|
|
"blob:"
|
|
],
|
|
"font-src": ["'self'", "http://tauri.localhost", "https://tauri.localhost", "asset:", "haex-extension:"],
|
|
"object-src": ["'none'"],
|
|
"media-src": ["'self'", "http://tauri.localhost", "https://tauri.localhost", "asset:", "haex-extension:"],
|
|
"frame-src": ["haex-extension:"],
|
|
"frame-ancestors": ["'none'"],
|
|
"base-uri": ["'self'"]
|
|
},
|
|
"assetProtocol": {
|
|
"enable": true,
|
|
"scope": ["$APPDATA", "$RESOURCE"]
|
|
}
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": "all",
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/icon.icns",
|
|
"icons/icon.ico"
|
|
],
|
|
"resources": ["database/vault.db"],
|
|
|
|
"linux": {
|
|
"appimage": {
|
|
"bundleMediaFramework": false,
|
|
"files": {}
|
|
},
|
|
"deb": {
|
|
"files": {}
|
|
},
|
|
"rpm": {
|
|
"epoch": 0,
|
|
"files": {},
|
|
"release": "1"
|
|
}
|
|
}
|
|
}
|
|
}
|