diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json new file mode 100644 index 0000000..626660c --- /dev/null +++ b/src-tauri/capabilities/default.json @@ -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/**" } + ] + } + ] +} diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs new file mode 100644 index 0000000..5d24722 --- /dev/null +++ b/src-tauri/src/main.rs @@ -0,0 +1,8 @@ +#![cfg_attr( + all(not(debug_assertions), target_os = "windows"), + windows_subsystem = "windows" +)] + +fn main() { + paarrot_lib::run(); +}