feat: added ts
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
#[cfg(target_os = "linux")]
|
||||
fn apply_linux_webkit_cli_flags() {
|
||||
let disable = std::env::args().any(|a| a == "--disable-webkit-compositing");
|
||||
if disable {
|
||||
unsafe { std::env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1"); }
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
apply_linux_webkit_cli_flags();
|
||||
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_sql::Builder::default().build())
|
||||
.run(tauri::generate_context!())
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "Kawai-Focus",
|
||||
"version": "0.1.0",
|
||||
"identifier": "com.kawai.focus",
|
||||
"build": {
|
||||
"frontendDist": "../../client/dist",
|
||||
"devUrl": "http://localhost:8100",
|
||||
"beforeDevCommand": "cd ../client && ionic serve",
|
||||
"beforeBuildCommand": "cd ../client && npm run build"
|
||||
},
|
||||
"app": {
|
||||
"withGlobalTauri": true,
|
||||
"windows": [
|
||||
{
|
||||
"label": "main",
|
||||
"title": "Kawai-Focus",
|
||||
"width": 800,
|
||||
"height": 600,
|
||||
"resizable": true,
|
||||
"fullscreen": false,
|
||||
"devtools": true
|
||||
}
|
||||
],
|
||||
"security": {
|
||||
"csp": null,
|
||||
"capabilities": ["default"]
|
||||
}
|
||||
},
|
||||
"bundle": {
|
||||
"active": true,
|
||||
"targets": "all",
|
||||
"icon": [
|
||||
"icons/32x32.png",
|
||||
"icons/128x128.png",
|
||||
"icons/128x128@2x.png",
|
||||
"icons/icon.icns",
|
||||
"icons/icon.ico"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user