mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01:00
* Add a new option to remove unused commands
* Fix compile
* Add markers to all core plugins
* Clippy
* Add allow unused when running with this
* Use build script to generate allowed-commands.json
* Clean up and add proper reruns
* Wrong path
* Revert to #[cfg_attr(not(debug_assertions), allow(unused))]
* Add change files
* Some more docs
* Add version requirement note
* Avoid rerun if no capabilities folder
* Remove unused box
* small cleanup
* fix channel
* implement for app handler too
* rely on core:default for channel perms
* Move this feature to config
* Docs change
* Forget one last remove_unused_commands
* Remove removeUnusedCommands from helloworld
* tell handler that the app ACL manifest exists
* update change file
* update doc
* update change file
* Use a struct to pass the data instead of env var
* Clippy
* Fix can't exclude inlined plugins on Windows
due to UNC paths...
* Apply suggestion from code review
* Remove remove on empty to tauri-build
* Revert "Remove remove on empty to tauri-build"
This reverts commit b727dd621e.
* Centralize remove_file(allowed_commands_file_path)
* Escape glob pattern
* update change file
* remove unused commands for dev too
* Update crates/tauri-utils/src/config.rs
Co-authored-by: Fabian-Lars <github@fabianlars.de>
* regen schema
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
Co-authored-by: Fabian-Lars <github@fabianlars.de>
101 lines
2.4 KiB
JSON
101 lines
2.4 KiB
JSON
{
|
|
"$schema": "../../../crates/tauri-schema-generator/schemas/config.schema.json",
|
|
"productName": "Tauri API",
|
|
"version": "1.0.0",
|
|
"identifier": "com.tauri.api",
|
|
"build": {
|
|
"frontendDist": "../dist",
|
|
"devUrl": "http://localhost:1420",
|
|
"beforeDevCommand": "pnpm dev",
|
|
"beforeBuildCommand": "pnpm build",
|
|
"removeUnusedCommands": true
|
|
},
|
|
"app": {
|
|
"withGlobalTauri": true,
|
|
"macOSPrivateApi": true,
|
|
"security": {
|
|
"pattern": {
|
|
"use": "isolation",
|
|
"options": {
|
|
"dir": "../isolation-dist/"
|
|
}
|
|
},
|
|
"csp": {
|
|
"default-src": "'self' customprotocol: asset:",
|
|
"connect-src": "ipc: http://ipc.localhost",
|
|
"font-src": ["https://fonts.gstatic.com"],
|
|
"img-src": "'self' asset: http://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"]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"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"
|
|
}
|
|
}
|
|
},
|
|
"nsis": {
|
|
"compression": "none"
|
|
}
|
|
}
|
|
}
|
|
}
|