2021-02-05 03:12:03 +03:00
|
|
|
{
|
2022-05-03 18:26:16 +03:00
|
|
|
"$schema": "../../../tooling/cli/schema.json",
|
2021-02-05 03:12:03 +03:00
|
|
|
"build": {
|
2021-12-09 07:16:00 +03:00
|
|
|
"distDir": "../dist",
|
2021-08-30 17:37:51 +03:00
|
|
|
"devPath": "http://localhost:5000",
|
2021-02-21 06:19:21 +03:00
|
|
|
"beforeDevCommand": "yarn dev",
|
|
|
|
"beforeBuildCommand": "yarn build"
|
2021-02-05 03:12:03 +03:00
|
|
|
},
|
2021-03-23 03:51:23 +03:00
|
|
|
"package": {
|
|
|
|
"productName": "Tauri API",
|
2022-01-07 22:55:30 +03:00
|
|
|
"version": "../package.json"
|
2021-03-23 03:51:23 +03:00
|
|
|
},
|
2021-02-05 03:12:03 +03:00
|
|
|
"tauri": {
|
2022-01-17 16:46:14 +03:00
|
|
|
"pattern": {
|
|
|
|
"use": "isolation",
|
|
|
|
"options": {
|
|
|
|
"dir": "../isolation-dist/"
|
|
|
|
}
|
|
|
|
},
|
2022-01-09 17:29:29 +03:00
|
|
|
"macOSPrivateApi": true,
|
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",
|
2021-07-04 01:48:04 +03:00
|
|
|
"possibleValues": ["light", "dark", "system"]
|
2021-02-05 03:12:03 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"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,
|
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,
|
|
|
|
"dialog": false,
|
|
|
|
"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": {
|
|
|
|
"allow": ["$APP/db/**", "$DOWNLOAD/**", "$RESOURCE/**"],
|
|
|
|
"deny": ["$APP/db/*.stronghold"]
|
|
|
|
}
|
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",
|
|
|
|
"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",
|
|
|
|
"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": {
|
|
|
|
"allow": ["$APP/db/**", "$RESOURCE/**"],
|
|
|
|
"deny": ["$APP/db/*.stronghold"]
|
|
|
|
}
|
2021-10-29 17:15:24 +03:00
|
|
|
},
|
|
|
|
"http": {
|
2022-04-23 02:04:58 +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:",
|
|
|
|
"font-src": ["https://fonts.gstatic.com"],
|
|
|
|
"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
|
|
|
}
|
|
|
|
}
|
2021-07-02 06:00:30 +03:00
|
|
|
}
|