From 7508ebacab7bbc8cbc3c1659240f5db89fd0f6b0 Mon Sep 17 00:00:00 2001 From: litruv Date: Sat, 21 Feb 2026 17:51:17 +1100 Subject: [PATCH] feat: add default capabilities configuration and main entry point --- src-tauri/capabilities/default.json | 29 +++++++++++++++++++++++++++++ src-tauri/src/main.rs | 8 ++++++++ 2 files changed, 37 insertions(+) create mode 100644 src-tauri/capabilities/default.json create mode 100644 src-tauri/src/main.rs 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(); +}