🐛 System code compatibility
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "pake-cli",
|
"name": "pake-cli",
|
||||||
"version": "2.6.0",
|
"version": "2.6.1",
|
||||||
"description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。",
|
"description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.0.0"
|
"node": ">=16.0.0"
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
use crate::app::config::PakeConfig;
|
use crate::app::config::PakeConfig;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use tauri::{App, Theme, Window, WindowBuilder, WindowUrl};
|
use tauri::{App, Window, WindowBuilder, WindowUrl};
|
||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
use tauri::TitleBarStyle;
|
use tauri::{Theme, TitleBarStyle};
|
||||||
|
|
||||||
pub fn build_window(app: &mut App, config: PakeConfig, _data_dir: PathBuf) -> Window {
|
pub fn build_window(app: &mut App, config: PakeConfig, _data_dir: PathBuf) -> Window {
|
||||||
let window_config = config
|
let window_config = config
|
||||||
|
|||||||
@@ -9,11 +9,13 @@ mod util;
|
|||||||
use app::{invoke, menu, window};
|
use app::{invoke, menu, window};
|
||||||
use invoke::{download_file, download_file_by_binary};
|
use invoke::{download_file, download_file_by_binary};
|
||||||
use menu::{get_system_tray, system_tray_handle};
|
use menu::{get_system_tray, system_tray_handle};
|
||||||
use std::time::Duration;
|
|
||||||
use tauri::{GlobalShortcutManager, Manager};
|
use tauri::{GlobalShortcutManager, Manager};
|
||||||
use util::{get_data_dir, get_pake_config};
|
use util::{get_data_dir, get_pake_config};
|
||||||
use window::build_window;
|
use window::build_window;
|
||||||
|
|
||||||
|
#[cfg(target_os = "macos")]
|
||||||
|
use std::time::Duration;
|
||||||
|
|
||||||
pub fn run_app() {
|
pub fn run_app() {
|
||||||
let (pake_config, tauri_config) = get_pake_config();
|
let (pake_config, tauri_config) = get_pake_config();
|
||||||
let data_dir = get_data_dir(tauri_config);
|
let data_dir = get_data_dir(tauri_config);
|
||||||
|
|||||||
Reference in New Issue
Block a user