feat: add default capabilities configuration and main entry point
This commit is contained in:
29
src-tauri/capabilities/default.json
Normal file
29
src-tauri/capabilities/default.json
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"$schema": "../gen/schemas/desktop-schema.json",
|
||||||
|
"identifier": "default",
|
||||||
|
"description": "Default capability for all windows",
|
||||||
|
"windows": ["*"],
|
||||||
|
"platforms": ["linux", "windows", "macOS"],
|
||||||
|
"permissions": [
|
||||||
|
"core:default",
|
||||||
|
"core:webview:allow-internal-toggle-devtools",
|
||||||
|
"opener:default",
|
||||||
|
"opener:allow-open-url",
|
||||||
|
"opener:allow-default-urls",
|
||||||
|
"notification:default",
|
||||||
|
"notification:allow-register-listener",
|
||||||
|
"autostart:default",
|
||||||
|
"updater:default",
|
||||||
|
"updater:allow-check",
|
||||||
|
"updater:allow-download",
|
||||||
|
"updater:allow-download-and-install",
|
||||||
|
"dialog:default",
|
||||||
|
"process:allow-restart",
|
||||||
|
{
|
||||||
|
"identifier": "http:default",
|
||||||
|
"allow": [
|
||||||
|
{ "url": "https://api.telegram.org/**" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
8
src-tauri/src/main.rs
Normal file
8
src-tauri/src/main.rs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#![cfg_attr(
|
||||||
|
all(not(debug_assertions), target_os = "windows"),
|
||||||
|
windows_subsystem = "windows"
|
||||||
|
)]
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
paarrot_lib::run();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user