Files

52 lines
1.9 KiB
JSON

{
"$schema": "https://schema.tauri.app/config/2",
"productName": "HGhub",
"version": "1.2.0",
"identifier": "com.hghub.huangguo",
"build": {
"beforeDevCommand": "pnpm dev",
"devUrl": "http://localhost:1420",
"beforeBuildCommand": "pnpm build && node scripts/sync-android-icons.mjs",
"frontendDist": "../dist"
},
"app": {
"windows": [
{
"label": "main",
"title": "HGhub",
"width": 1200,
"height": 780,
"minWidth": 900,
"minHeight": 620,
"decorations": false,
"transparent": false,
"resizable": true,
"center": true
}
],
"security": {
"csp": "default-src 'none'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: hg: http://hg.localhost https://hg.localhost; media-src 'self' blob: hg: http://hg.localhost https://hg.localhost; connect-src ipc: http://ipc.localhost https://ipc.localhost hg: http://hg.localhost https://hg.localhost; worker-src 'self' blob:; object-src 'none'; base-uri 'none'; form-action 'none'; frame-src 'none'",
"devCsp": "default-src 'none'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: hg: http://hg.localhost https://hg.localhost; media-src 'self' blob: hg: http://hg.localhost https://hg.localhost; connect-src 'self' ws: wss: ipc: http://ipc.localhost https://ipc.localhost hg: http://hg.localhost https://hg.localhost; worker-src 'self' blob:; object-src 'none'; base-uri 'none'; form-action 'none'; frame-src 'none'"
}
},
"bundle": {
"active": true,
"targets": [
"nsis"
],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"android": {
"minSdkVersion": 24
},
"iOS": {
"developmentTeam": "ABCDE12345"
}
}
}