mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-16 07:08:32 +03:00
125 lines
3.0 KiB
JSON
125 lines
3.0 KiB
JSON
{
|
|
"build": {
|
|
"distDir": "../dist",
|
|
"devPath": "http://localhost:5000",
|
|
"beforeDevCommand": "yarn dev",
|
|
"beforeBuildCommand": "yarn build"
|
|
},
|
|
"package": {
|
|
"productName": "Tauri API",
|
|
"version": "../package.json"
|
|
},
|
|
"tauri": {
|
|
"pattern": {
|
|
"use": "isolation",
|
|
"options": {
|
|
"dir": "../isolation-dist/"
|
|
}
|
|
},
|
|
"macOSPrivateApi": true,
|
|
"cli": {
|
|
"description": "Tauri API example",
|
|
"args": [
|
|
{
|
|
"short": "c",
|
|
"name": "config",
|
|
"takesValue": true,
|
|
"description": "Config path"
|
|
},
|
|
{
|
|
"short": "t",
|
|
"name": "theme",
|
|
"takesValue": true,
|
|
"description": "App theme",
|
|
"possibleValues": ["light", "dark", "system"]
|
|
},
|
|
{
|
|
"short": "v",
|
|
"name": "verbose",
|
|
"multipleOccurrences": true,
|
|
"description": "Verbosity level"
|
|
}
|
|
],
|
|
"subcommands": {
|
|
"update": {
|
|
"description": "Updates the app",
|
|
"args": [
|
|
{
|
|
"short": "b",
|
|
"name": "background",
|
|
"description": "Update in background"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"identifier": "com.tauri.api",
|
|
"icon": [
|
|
"../../.icons/32x32.png",
|
|
"../../.icons/128x128.png",
|
|
"../../.icons/128x128@2x.png",
|
|
"../../.icons/icon.icns",
|
|
"../../.icons/icon.ico"
|
|
],
|
|
"windows": {
|
|
"wix": {
|
|
"language": {
|
|
"en-US": {},
|
|
"pt-BR": {
|
|
"localePath": "locales/pt-BR.wxl"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"updater": {
|
|
"active": true,
|
|
"dialog": false,
|
|
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDE5QzMxNjYwNTM5OEUwNTgKUldSWTRKaFRZQmJER1h4d1ZMYVA3dnluSjdpN2RmMldJR09hUFFlZDY0SlFqckkvRUJhZDJVZXAK",
|
|
"endpoints": [
|
|
"https://tauri-update-server.vercel.app/update/{{target}}/{{current_version}}"
|
|
]
|
|
},
|
|
"allowlist": {
|
|
"all": true,
|
|
"fs": {
|
|
"scope": ["$APP/db", "$DOWNLOAD/**", "$RESOURCE/**"]
|
|
},
|
|
"shell": {
|
|
"scope": [
|
|
{
|
|
"name": "sh",
|
|
"cmd": "sh"
|
|
},
|
|
{
|
|
"name": "cmd",
|
|
"cmd": "cmd"
|
|
}
|
|
]
|
|
},
|
|
"protocol": {
|
|
"asset": true,
|
|
"assetScope": ["$RESOURCE/**", "$APP/**"]
|
|
},
|
|
"http": {
|
|
"scope": ["https://jsonplaceholder.typicode.com/todos/*"]
|
|
}
|
|
},
|
|
"windows": [
|
|
{
|
|
"title": "Tauri API Validation",
|
|
"transparent": true
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": "default-src 'self' customprotocol: img-src: 'self'; style-src 'unsafe-inline' 'self' https://fonts.googleapis.com; img-src 'self' asset: https://asset.localhost blob: data:; font-src https://fonts.gstatic.com"
|
|
},
|
|
"systemTray": {
|
|
"iconPath": "../../.icons/tray_icon_with_transparency.png",
|
|
"iconAsTemplate": true
|
|
}
|
|
}
|
|
}
|