2021-02-05 03:12:03 +03:00
|
|
|
{
|
2022-10-28 16:44:37 +03:00
|
|
|
"$schema": "../../../core/config-schema/schema.json",
|
2021-02-05 03:12:03 +03:00
|
|
|
"build": {
|
2021-12-09 07:16:00 +03:00
|
|
|
"distDir": "../dist",
|
2022-08-20 22:53:07 +03:00
|
|
|
"devPath": "http://localhost:5173",
|
2022-12-03 16:20:04 +03:00
|
|
|
"beforeDevCommand": "yarn dev",
|
2023-02-06 14:56:00 +03:00
|
|
|
"beforeBuildCommand": "yarn build",
|
|
|
|
"withGlobalTauri": true
|
2021-02-05 03:12:03 +03:00
|
|
|
},
|
2021-03-23 03:51:23 +03:00
|
|
|
"package": {
|
|
|
|
"productName": "Tauri API",
|
2022-07-27 20:58:43 +03:00
|
|
|
"version": "1.0.0"
|
2021-03-23 03:51:23 +03:00
|
|
|
},
|
2023-04-14 21:33:53 +03:00
|
|
|
"plugins": {
|
2021-02-05 03:12:03 +03:00
|
|
|
"cli": {
|
2021-02-21 19:48:08 +03:00
|
|
|
"description": "Tauri API example",
|
2021-02-05 03:12:03 +03:00
|
|
|
"args": [
|
|
|
|
{
|
|
|
|
"short": "c",
|
|
|
|
"name": "config",
|
|
|
|
"takesValue": true,
|
|
|
|
"description": "Config path"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"short": "t",
|
|
|
|
"name": "theme",
|
|
|
|
"takesValue": true,
|
|
|
|
"description": "App theme",
|
2023-04-14 21:33:53 +03:00
|
|
|
"possibleValues": [
|
|
|
|
"light",
|
|
|
|
"dark",
|
|
|
|
"system"
|
|
|
|
]
|
2021-02-05 03:12:03 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"short": "v",
|
|
|
|
"name": "verbose",
|
|
|
|
"description": "Verbosity level"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"subcommands": {
|
|
|
|
"update": {
|
|
|
|
"description": "Updates the app",
|
|
|
|
"args": [
|
|
|
|
{
|
|
|
|
"short": "b",
|
|
|
|
"name": "background",
|
|
|
|
"description": "Update in background"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2023-04-14 21:33:53 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tauri": {
|
|
|
|
"pattern": {
|
|
|
|
"use": "isolation",
|
|
|
|
"options": {
|
|
|
|
"dir": "../isolation-dist/"
|
|
|
|
}
|
2021-02-05 03:12:03 +03:00
|
|
|
},
|
2023-04-14 21:33:53 +03:00
|
|
|
"macOSPrivateApi": true,
|
2021-02-05 03:12:03 +03:00
|
|
|
"bundle": {
|
|
|
|
"active": true,
|
2021-02-21 19:48:08 +03:00
|
|
|
"identifier": "com.tauri.api",
|
2021-02-05 03:12:03 +03:00
|
|
|
"icon": [
|
2021-05-03 17:16:51 +03:00
|
|
|
"../../.icons/32x32.png",
|
|
|
|
"../../.icons/128x128.png",
|
|
|
|
"../../.icons/128x128@2x.png",
|
|
|
|
"../../.icons/icon.icns",
|
|
|
|
"../../.icons/icon.ico"
|
2022-02-05 21:13:07 +03:00
|
|
|
],
|
|
|
|
"windows": {
|
|
|
|
"wix": {
|
|
|
|
"language": {
|
|
|
|
"en-US": {},
|
|
|
|
"pt-BR": {
|
|
|
|
"localePath": "locales/pt-BR.wxl"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-02-05 03:12:03 +03:00
|
|
|
},
|
2021-04-05 20:51:17 +03:00
|
|
|
"updater": {
|
|
|
|
"active": true,
|
|
|
|
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDE5QzMxNjYwNTM5OEUwNTgKUldSWTRKaFRZQmJER1h4d1ZMYVA3dnluSjdpN2RmMldJR09hUFFlZDY0SlFqckkvRUJhZDJVZXAK",
|
|
|
|
"endpoints": [
|
|
|
|
"https://tauri-update-server.vercel.app/update/{{target}}/{{current_version}}"
|
|
|
|
]
|
|
|
|
},
|
2021-02-05 03:12:03 +03:00
|
|
|
"allowlist": {
|
2022-01-09 20:26:58 +03:00
|
|
|
"all": true,
|
|
|
|
"fs": {
|
2022-03-03 23:32:12 +03:00
|
|
|
"scope": {
|
2023-04-19 04:18:22 +03:00
|
|
|
"allow": [
|
|
|
|
"$APPDATA/db/**",
|
|
|
|
"$DOWNLOAD/**",
|
|
|
|
"$RESOURCE/**"
|
|
|
|
],
|
|
|
|
"deny": [
|
|
|
|
"$APPDATA/db/*.stronghold"
|
|
|
|
]
|
2022-03-03 23:32:12 +03:00
|
|
|
}
|
2022-01-09 20:26:58 +03:00
|
|
|
},
|
2021-12-27 19:44:19 +03:00
|
|
|
"shell": {
|
2022-06-04 17:45:24 +03:00
|
|
|
"open": true,
|
2022-01-26 18:57:08 +03:00
|
|
|
"scope": [
|
|
|
|
{
|
2022-01-29 03:07:08 +03:00
|
|
|
"name": "sh",
|
2022-02-11 21:04:00 +03:00
|
|
|
"cmd": "sh",
|
2023-04-19 04:18:22 +03:00
|
|
|
"args": [
|
|
|
|
"-c",
|
|
|
|
{
|
|
|
|
"validator": "\\S+"
|
|
|
|
}
|
|
|
|
]
|
2022-01-26 18:57:08 +03:00
|
|
|
},
|
|
|
|
{
|
2022-01-29 03:07:08 +03:00
|
|
|
"name": "cmd",
|
2022-02-11 21:04:00 +03:00
|
|
|
"cmd": "cmd",
|
2023-04-19 04:18:22 +03:00
|
|
|
"args": [
|
|
|
|
"/C",
|
|
|
|
{
|
|
|
|
"validator": "\\S+"
|
|
|
|
}
|
|
|
|
]
|
2022-01-26 18:57:08 +03:00
|
|
|
}
|
|
|
|
]
|
2021-12-27 19:44:19 +03:00
|
|
|
},
|
2022-01-09 20:26:58 +03:00
|
|
|
"protocol": {
|
|
|
|
"asset": true,
|
2022-03-03 23:32:12 +03:00
|
|
|
"assetScope": {
|
2023-04-19 04:18:22 +03:00
|
|
|
"allow": [
|
|
|
|
"$APPDATA/db/**",
|
|
|
|
"$RESOURCE/**"
|
|
|
|
],
|
|
|
|
"deny": [
|
|
|
|
"$APPDATA/db/*.stronghold"
|
|
|
|
]
|
2022-03-03 23:32:12 +03:00
|
|
|
}
|
2021-10-29 17:15:24 +03:00
|
|
|
},
|
|
|
|
"http": {
|
2023-04-19 04:18:22 +03:00
|
|
|
"scope": [
|
|
|
|
"http://localhost:3003"
|
|
|
|
]
|
2022-01-09 20:26:58 +03:00
|
|
|
}
|
2021-02-05 03:12:03 +03:00
|
|
|
},
|
2022-07-04 04:15:23 +03:00
|
|
|
"windows": [],
|
2021-02-05 03:12:03 +03:00
|
|
|
"security": {
|
2022-03-05 03:18:39 +03:00
|
|
|
"csp": {
|
|
|
|
"default-src": "'self' customprotocol: asset:",
|
2023-04-19 04:18:22 +03:00
|
|
|
"font-src": [
|
|
|
|
"https://fonts.gstatic.com"
|
|
|
|
],
|
2022-03-05 03:18:39 +03:00
|
|
|
"img-src": "'self' asset: https://asset.localhost blob: data:",
|
|
|
|
"style-src": "'unsafe-inline' 'self' https://fonts.googleapis.com"
|
|
|
|
},
|
2022-02-12 16:28:05 +03:00
|
|
|
"freezePrototype": true
|
2021-05-09 14:15:37 +03:00
|
|
|
},
|
|
|
|
"systemTray": {
|
2021-07-29 22:29:59 +03:00
|
|
|
"iconPath": "../../.icons/tray_icon_with_transparency.png",
|
2022-07-05 15:05:01 +03:00
|
|
|
"iconAsTemplate": true,
|
|
|
|
"menuOnLeftClick": false
|
2021-02-05 03:12:03 +03:00
|
|
|
}
|
|
|
|
}
|
2023-04-19 04:18:22 +03:00
|
|
|
}
|