Skip to content

Commit a83c3fc

Browse files
chore(tauri): gitignore gen/schemas instead of committing it
crates/mt-tauri/gen/schemas/*.json are Tauri-generated permission/ capability schemas, regenerated on every cargo check/tauri dev/tauri build from installed plugins and capabilities config. They aren't pretty-printed and aren't meant to be hand-edited, and Tauri's own tauri init/create-tauri-app scaffolding gitignores gen/ by default. Committing them produced unrelated diff churn on linux-schema.json (the file regenerated for this host's platform) in sessions unrelated to Tauri work.
1 parent aee6c59 commit a83c3fc

2 files changed

Lines changed: 70 additions & 1 deletion

File tree

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ src-tauri/bin/
201201
# Rust ICE (internal compiler error) reports
202202
rustc-ice-*.txt
203203

204+
# Tauri-generated permission/capability schemas (regenerated on every build)
205+
crates/mt-tauri/gen/schemas/
206+
204207
# Generated by Cargo
205208
# will have compiled files and executables
206209
debug

‎crates/mt-tauri/gen/schemas/linux-schema.json‎

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2588,6 +2588,72 @@
25882588
"const": "dialog:deny-save",
25892589
"markdownDescription": "Denies the save command without any pre-configured scope."
25902590
},
2591+
{
2592+
"description": "No features are enabled by default, as we believe\nthe shortcuts can be inherently dangerous and it is\napplication specific if specific shortcuts should be\nregistered or unregistered.\n",
2593+
"type": "string",
2594+
"const": "global-shortcut:default",
2595+
"markdownDescription": "No features are enabled by default, as we believe\nthe shortcuts can be inherently dangerous and it is\napplication specific if specific shortcuts should be\nregistered or unregistered.\n"
2596+
},
2597+
{
2598+
"description": "Enables the is_registered command without any pre-configured scope.",
2599+
"type": "string",
2600+
"const": "global-shortcut:allow-is-registered",
2601+
"markdownDescription": "Enables the is_registered command without any pre-configured scope."
2602+
},
2603+
{
2604+
"description": "Enables the register command without any pre-configured scope.",
2605+
"type": "string",
2606+
"const": "global-shortcut:allow-register",
2607+
"markdownDescription": "Enables the register command without any pre-configured scope."
2608+
},
2609+
{
2610+
"description": "Enables the register_all command without any pre-configured scope.",
2611+
"type": "string",
2612+
"const": "global-shortcut:allow-register-all",
2613+
"markdownDescription": "Enables the register_all command without any pre-configured scope."
2614+
},
2615+
{
2616+
"description": "Enables the unregister command without any pre-configured scope.",
2617+
"type": "string",
2618+
"const": "global-shortcut:allow-unregister",
2619+
"markdownDescription": "Enables the unregister command without any pre-configured scope."
2620+
},
2621+
{
2622+
"description": "Enables the unregister_all command without any pre-configured scope.",
2623+
"type": "string",
2624+
"const": "global-shortcut:allow-unregister-all",
2625+
"markdownDescription": "Enables the unregister_all command without any pre-configured scope."
2626+
},
2627+
{
2628+
"description": "Denies the is_registered command without any pre-configured scope.",
2629+
"type": "string",
2630+
"const": "global-shortcut:deny-is-registered",
2631+
"markdownDescription": "Denies the is_registered command without any pre-configured scope."
2632+
},
2633+
{
2634+
"description": "Denies the register command without any pre-configured scope.",
2635+
"type": "string",
2636+
"const": "global-shortcut:deny-register",
2637+
"markdownDescription": "Denies the register command without any pre-configured scope."
2638+
},
2639+
{
2640+
"description": "Denies the register_all command without any pre-configured scope.",
2641+
"type": "string",
2642+
"const": "global-shortcut:deny-register-all",
2643+
"markdownDescription": "Denies the register_all command without any pre-configured scope."
2644+
},
2645+
{
2646+
"description": "Denies the unregister command without any pre-configured scope.",
2647+
"type": "string",
2648+
"const": "global-shortcut:deny-unregister",
2649+
"markdownDescription": "Denies the unregister command without any pre-configured scope."
2650+
},
2651+
{
2652+
"description": "Denies the unregister_all command without any pre-configured scope.",
2653+
"type": "string",
2654+
"const": "global-shortcut:deny-unregister-all",
2655+
"markdownDescription": "Denies the unregister_all command without any pre-configured scope."
2656+
},
25912657
{
25922658
"description": "This permission set allows opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application\nas well as reveal file in directories using default file explorer\n#### This default permission set includes:\n\n- `allow-open-url`\n- `allow-reveal-item-in-dir`\n- `allow-default-urls`",
25932659
"type": "string",
@@ -3034,4 +3100,4 @@
30343100
]
30353101
}
30363102
}
3037-
}
3103+
}

0 commit comments

Comments
 (0)