Skip to content

Commit 68e89b3

Browse files
committed
Add log capabilities and fix updater permission
+ file association support for macOS
1 parent 0eeee56 commit 68e89b3

File tree

13 files changed

+6242
-11
lines changed

13 files changed

+6242
-11
lines changed

Cargo.lock

Lines changed: 289 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tauri/package-lock.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tauri/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"@tauri-apps/api": "^2.5.0",
2929
"@tauri-apps/plugin-dialog": "^2.2.1",
3030
"@tauri-apps/plugin-fs": "^2.2.1",
31+
"@tauri-apps/plugin-log": "^2.6.0",
3132
"@tauri-apps/plugin-process": "^2.3.0",
3233
"@tauri-apps/plugin-updater": "^2.9.0",
3334
"class-variance-authority": "^0.7.0",

tauri/src-tauri/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ tauri-plugin-dialog = "2"
2424
tauri-plugin-fs = "2"
2525
url = "2.5.2"
2626
tauri-plugin-process = "2"
27+
tauri-plugin-log = "2"
28+
log = "0.4.27"
2729

2830

2931
[features]

tauri/src-tauri/capabilities/desktop.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
"main"
1010
],
1111
"permissions": [
12-
"updater:default"
12+
"updater:default",
13+
"process:default",
14+
"log:default"
1315
]
1416
}

tauri/src-tauri/capabilities/migrated.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"dialog:allow-save",
1313
"dialog:default",
1414
"fs:default",
15-
"updater:default"
15+
"updater:default",
16+
"process:default",
17+
"log:default"
1618
]
1719
}

tauri/src-tauri/gen/schemas/acl-manifests.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"desktop-capability":{"identifier":"desktop-capability","description":"","local":true,"windows":["main"],"permissions":["updater:default"],"platforms":["macOS","windows","linux"]},"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["core:default","fs:allow-write-file","dialog:allow-open","dialog:allow-save","dialog:default","fs:default"]}}
1+
{"desktop-capability":{"identifier":"desktop-capability","description":"","local":true,"windows":["main"],"permissions":["updater:default","process:default","log:default"],"platforms":["macOS","windows","linux"]},"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["core:default","fs:allow-write-file","dialog:allow-open","dialog:allow-save","dialog:default","fs:default","updater:default","process:default","log:default"]}}

tauri/src-tauri/gen/schemas/desktop-schema.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5666,6 +5666,24 @@
56665666
"const": "fs:write-files",
56675667
"markdownDescription": "This enables all file write related commands without any pre-configured accessible paths."
56685668
},
5669+
{
5670+
"description": "Allows the log command\n#### This default permission set includes:\n\n- `allow-log`",
5671+
"type": "string",
5672+
"const": "log:default",
5673+
"markdownDescription": "Allows the log command\n#### This default permission set includes:\n\n- `allow-log`"
5674+
},
5675+
{
5676+
"description": "Enables the log command without any pre-configured scope.",
5677+
"type": "string",
5678+
"const": "log:allow-log",
5679+
"markdownDescription": "Enables the log command without any pre-configured scope."
5680+
},
5681+
{
5682+
"description": "Denies the log command without any pre-configured scope.",
5683+
"type": "string",
5684+
"const": "log:deny-log",
5685+
"markdownDescription": "Denies the log command without any pre-configured scope."
5686+
},
56695687
{
56705688
"description": "This permission set configures which\nprocess features are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n\n#### This default permission set includes:\n\n- `allow-exit`\n- `allow-restart`",
56715689
"type": "string",

tauri/src-tauri/gen/schemas/linux-schema.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5666,6 +5666,24 @@
56665666
"const": "fs:write-files",
56675667
"markdownDescription": "This enables all file write related commands without any pre-configured accessible paths."
56685668
},
5669+
{
5670+
"description": "Allows the log command\n#### This default permission set includes:\n\n- `allow-log`",
5671+
"type": "string",
5672+
"const": "log:default",
5673+
"markdownDescription": "Allows the log command\n#### This default permission set includes:\n\n- `allow-log`"
5674+
},
5675+
{
5676+
"description": "Enables the log command without any pre-configured scope.",
5677+
"type": "string",
5678+
"const": "log:allow-log",
5679+
"markdownDescription": "Enables the log command without any pre-configured scope."
5680+
},
5681+
{
5682+
"description": "Denies the log command without any pre-configured scope.",
5683+
"type": "string",
5684+
"const": "log:deny-log",
5685+
"markdownDescription": "Denies the log command without any pre-configured scope."
5686+
},
56695687
{
56705688
"description": "This permission set configures which\nprocess features are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n\n#### This default permission set includes:\n\n- `allow-exit`\n- `allow-restart`",
56715689
"type": "string",

0 commit comments

Comments
 (0)