mobile app dev fix

This commit is contained in:
2026-03-10 13:49:08 +07:00
parent c9dfc681e8
commit cfa18f698b
6 changed files with 12 additions and 16 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"
[lib]
crate-type = ["cdylib", "staticlib"]
crate-type = ["staticlib", "cdylib", "rlib"]
name = "netrunner_app"
[build-dependencies]
+2 -6
View File
@@ -1,9 +1,5 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
// 2. Только после него идут импорты
use tauri;
fn main() {
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.run(tauri::generate_context!())
.expect("error while running tauri application");
+3
View File
@@ -0,0 +1,3 @@
fn main() {
netrunner_app::run();
}
+1 -1
View File
@@ -6,7 +6,7 @@
"build": {
"beforeDevCommand": "pnpm dev",
"beforeBuildCommand": "pnpm build",
"devUrl": "http://localhost:5173",
"devUrl": "http://192.168.110.169:1420",
"frontendDist": "../dist"
},
"app": {