mobile app web view

This commit is contained in:
2026-03-10 00:40:39 +07:00
parent 6f4dd88a8e
commit c9dfc681e8
45 changed files with 6539 additions and 135 deletions
+6 -8
View File
@@ -1,19 +1,17 @@
[package]
name = "app"
name = "netrunner-app"
version = "0.1.0"
edition = "2021"
[[bin]]
name = "netrunner-app"
path = "main.rs"
[lib]
crate-type = ["cdylib", "staticlib"]
name = "netrunner_app"
[build-dependencies]
tauri-build = { version = "2.0.0" }
tauri-build = { version = "2.0.0", features = [] }
[dependencies]
netrunner-client = { path = "../../client" }
netrunner-core = { path = "../../core" }
tauri = { version = "2.0.0", features = [] }
serde = { version = "1.0", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

+3
View File
@@ -0,0 +1,3 @@
fn main() {
tauri_build::build();
}
+7
View File
@@ -0,0 +1,7 @@
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "Capability for the main window",
"windows": ["main"],
"permissions": ["core:default"]
}
-1
View File
@@ -1 +0,0 @@
fn main() {}
+10
View File
@@ -0,0 +1,10 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
// 2. Только после него идут импорты
use tauri;
fn main() {
tauri::Builder::default()
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
+29
View File
@@ -0,0 +1,29 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "netrunner_app",
"version": "0.1.0",
"identifier": "com.netrunner.vpn",
"build": {
"beforeDevCommand": "pnpm dev",
"beforeBuildCommand": "pnpm build",
"devUrl": "http://localhost:5173",
"frontendDist": "../dist"
},
"app": {
"windows": [
{
"title": "Netrunner VPN",
"width": 500,
"height": 800
}
],
"security": {
"csp": null
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": ["icons/icon.png"]
}
}