mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-22 18:21:35 +03:00
e1e85dc2a5
* chore: fix ci and cleanup leftovers
1. removed leftover feature flags
2. remove zip/extract apis which are not used anymore
3. removed leftoever scopes
4. removed leftover allowlist and updater options
5. updated the example api
* remove leftover updater structs
* move updater under bundle and remove uneeded options
* fix cli on linux
* remove create_proxy
* clippy
* more clippy
* clippppy
* readd path api
* fix api example
* remove window allowlist
* remove window from allowlist config
* remove `all` allowlist option
* remove file_move
* lint
* fix windows build
* remvoe unused deps
* remvoe allowlist config option, move protocol to `security > asset_protocol`
* fix diffing features
* fmt and test
* fix scope alias
* change files
* android lint
* simplify allow_file impl
* Revert "simplify allow_file impl"
This reverts commit b8882f2fd0
.
* expose scopes
* remove unused error variants
* protocol-asset on docs.rs
* ignore reqwest on udeps
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
111 lines
2.6 KiB
JSON
111 lines
2.6 KiB
JSON
{
|
|
"$schema": "../../../core/tauri-config-schema/schema.json",
|
|
"build": {
|
|
"distDir": "../dist",
|
|
"devPath": "http://localhost:5173",
|
|
"beforeDevCommand": "yarn dev",
|
|
"beforeBuildCommand": "yarn build",
|
|
"withGlobalTauri": true
|
|
},
|
|
"package": {
|
|
"productName": "Tauri API",
|
|
"version": "1.0.0"
|
|
},
|
|
"plugins": {
|
|
"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",
|
|
"description": "Verbosity level"
|
|
}
|
|
],
|
|
"subcommands": {
|
|
"update": {
|
|
"description": "Updates the app",
|
|
"args": [
|
|
{
|
|
"short": "b",
|
|
"name": "background",
|
|
"description": "Update in background"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tauri": {
|
|
"pattern": {
|
|
"use": "isolation",
|
|
"options": {
|
|
"dir": "../isolation-dist/"
|
|
}
|
|
},
|
|
"macOSPrivateApi": true,
|
|
"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,
|
|
"pubkey": "asdasd",
|
|
"windows": {
|
|
"installMode": "passive"
|
|
}
|
|
}
|
|
},
|
|
"windows": [],
|
|
"security": {
|
|
"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"
|
|
},
|
|
"freezePrototype": true,
|
|
"assetProtocol": {
|
|
"enable": true,
|
|
"scope": {
|
|
"allow": ["$APPDATA/db/**", "$RESOURCE/**"],
|
|
"deny": ["$APPDATA/db/*.stronghold"]
|
|
}
|
|
}
|
|
},
|
|
"systemTray": {
|
|
"iconPath": "../../.icons/tray_icon_with_transparency.png",
|
|
"iconAsTemplate": true,
|
|
"menuOnLeftClick": false
|
|
}
|
|
}
|
|
}
|