Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ path = "src/main.rs"
tauri-build = { version = "2.0", features = [] }

[dependencies]
tauri = { version = "2.9.3", features = [] }
tauri = { version = "2.9.3", features = ["macos-private-api"] }
tauri-plugin-opener = "2.5"
tauri-plugin-fs = "2.4"
serde = { version = "1", features = ["derive"] }
Expand Down
3,554 changes: 1 addition & 3,553 deletions apps/desktop/src-tauri/gen/schemas/acl-manifests.json

Large diffs are not rendered by default.

15 changes: 1 addition & 14 deletions apps/desktop/src-tauri/gen/schemas/capabilities.json
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
{
"default": {
"identifier": "default",
"description": "Capability for the main window",
"local": true,
"windows": ["main"],
"permissions": [
"core:default",
"opener:default",
"fs:default",
"core:window:allow-start-dragging"
]
}
}
{"default":{"identifier":"default","description":"Capability for the main window","local":true,"windows":["main"],"permissions":["core:default","opener:default","fs:default","core:window:allow-start-dragging"]}}
78 changes: 59 additions & 19 deletions apps/desktop/src-tauri/gen/schemas/desktop-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
{
"description": "A list of capabilities.",
"type": "object",
"required": ["capabilities"],
"required": [
"capabilities"
],
"properties": {
"capabilities": {
"description": "The list of capabilities.",
Expand All @@ -37,7 +39,10 @@
"Capability": {
"description": "A grouping and boundary mechanism developers can use to isolate access to the IPC layer.\n\nIt controls application windows' and webviews' fine grained access to the Tauri core, application, or plugin commands. If a webview or its window is not matching any capability then it has no access to the IPC layer at all.\n\nThis can be done to create groups of windows, based on their required system access, which can reduce impact of frontend vulnerabilities in less privileged windows. Windows can be added to a capability by exact name (e.g. `main-window`) or glob patterns like `*` or `admin-*`. A Window can have none, one, or multiple associated capabilities.\n\n## Example\n\n```json { \"identifier\": \"main-user-files-write\", \"description\": \"This capability allows the `main` window on macOS and Windows access to `filesystem` write related commands and `dialog` commands to enable programmatic access to files selected by the user.\", \"windows\": [ \"main\" ], \"permissions\": [ \"core:default\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] }, ], \"platforms\": [\"macOS\",\"windows\"] } ```",
"type": "object",
"required": ["identifier", "permissions"],
"required": [
"identifier",
"permissions"
],
"properties": {
"identifier": {
"description": "Identifier of the capability.\n\n## Example\n\n`main-user-files-write`",
Expand Down Expand Up @@ -88,7 +93,10 @@
},
"platforms": {
"description": "Limit which target platforms this capability applies to.\n\nBy default all platforms are targeted.\n\n## Example\n\n`[\"macOS\",\"windows\"]`",
"type": ["array", "null"],
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/Target"
}
Expand All @@ -98,7 +106,9 @@
"CapabilityRemote": {
"description": "Configuration for remote URLs that are associated with the capability.",
"type": "object",
"required": ["urls"],
"required": [
"urls"
],
"properties": {
"urls": {
"description": "Remote domains this capability refers to using the [URLPattern standard](https://urlpattern.spec.whatwg.org/).\n\n## Examples\n\n- \"https://*.mydomain.dev\": allows subdomains of mydomain.dev - \"https://mydomain.dev/api/*\": allows any subpath of mydomain.dev/api",
Expand Down Expand Up @@ -1874,7 +1884,9 @@
},
{
"type": "object",
"required": ["path"],
"required": [
"path"
],
"properties": {
"path": {
"description": "A path that can be accessed by the webview when using the fs APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
Expand All @@ -1896,7 +1908,9 @@
},
{
"type": "object",
"required": ["path"],
"required": [
"path"
],
"properties": {
"path": {
"description": "A path that can be accessed by the webview when using the fs APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
Expand Down Expand Up @@ -1986,7 +2000,9 @@
"anyOf": [
{
"type": "object",
"required": ["url"],
"required": [
"url"
],
"properties": {
"app": {
"description": "An application to open this url with, for example: firefox.",
Expand All @@ -2004,7 +2020,9 @@
},
{
"type": "object",
"required": ["path"],
"required": [
"path"
],
"properties": {
"app": {
"description": "An application to open this path with, for example: xdg-open.",
Expand All @@ -2030,7 +2048,9 @@
"anyOf": [
{
"type": "object",
"required": ["url"],
"required": [
"url"
],
"properties": {
"app": {
"description": "An application to open this url with, for example: firefox.",
Expand All @@ -2048,7 +2068,9 @@
},
{
"type": "object",
"required": ["path"],
"required": [
"path"
],
"properties": {
"app": {
"description": "An application to open this path with, for example: xdg-open.",
Expand Down Expand Up @@ -2092,22 +2114,30 @@
},
"allow": {
"description": "Data that defines what is allowed by the scope.",
"type": ["array", "null"],
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/Value"
}
},
"deny": {
"description": "Data that defines what is denied by the scope. This should be prioritized by validation logic.",
"type": ["array", "null"],
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/Value"
}
}
}
}
],
"required": ["identifier"]
"required": [
"identifier"
]
}
]
},
Expand Down Expand Up @@ -5920,27 +5950,37 @@
{
"description": "MacOS.",
"type": "string",
"enum": ["macOS"]
"enum": [
"macOS"
]
},
{
"description": "Windows.",
"type": "string",
"enum": ["windows"]
"enum": [
"windows"
]
},
{
"description": "Linux.",
"type": "string",
"enum": ["linux"]
"enum": [
"linux"
]
},
{
"description": "Android.",
"type": "string",
"enum": ["android"]
"enum": [
"android"
]
},
{
"description": "iOS.",
"type": "string",
"enum": ["iOS"]
"enum": [
"iOS"
]
}
]
},
Expand All @@ -5962,4 +6002,4 @@
]
}
}
}
}
Loading
Loading