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-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"
|
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": {
|
|
|
|
"scope": ["$APP/db", "$DOWNLOAD/**", "$RESOURCE/**"]
|
|
|
|
},
|
2021-12-27 19:44:19 +03:00
|
|
|
"shell": {
|
|
|
|
"scope": ["sh", "cmd"]
|
|
|
|
},
|
2022-01-09 20:26:58 +03:00
|
|
|
"protocol": {
|
|
|
|
"asset": true,
|
|
|
|
"assetScope": ["$RESOURCE/**"]
|
2021-10-29 17:15:24 +03:00
|
|
|
},
|
|
|
|
"http": {
|
|
|
|
"scope": ["https://jsonplaceholder.typicode.com"]
|
2022-01-09 20:26:58 +03:00
|
|
|
}
|
2021-02-05 03:12:03 +03:00
|
|
|
},
|
2021-02-16 07:23:15 +03:00
|
|
|
"windows": [
|
|
|
|
{
|
2021-06-16 05:12:41 +03:00
|
|
|
"title": "Tauri API Validation",
|
|
|
|
"transparent": true
|
2021-02-16 07:23:15 +03:00
|
|
|
}
|
|
|
|
],
|
2021-02-05 03:12:03 +03:00
|
|
|
"security": {
|
2022-01-09 20:26:58 +03:00
|
|
|
"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"
|
2021-05-09 14:15:37 +03:00
|
|
|
},
|
|
|
|
"systemTray": {
|
2021-07-29 22:29:59 +03:00
|
|
|
"iconPath": "../../.icons/tray_icon_with_transparency.png",
|
|
|
|
"iconAsTemplate": true
|
2021-02-05 03:12:03 +03:00
|
|
|
}
|
|
|
|
}
|
2021-07-02 06:00:30 +03:00
|
|
|
}
|