Skip to content

Commit

Permalink
🐛 System code compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tw93 committed Sep 14, 2024
1 parent 6e11c7f commit e89047d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pake-cli",
"version": "2.6.0",
"version": "2.6.1",
"description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。",
"engines": {
"node": ">=16.0.0"
Expand Down
4 changes: 2 additions & 2 deletions src-tauri/src/app/window.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use crate::app::config::PakeConfig;
use std::path::PathBuf;
use tauri::{App, Theme, Window, WindowBuilder, WindowUrl};
use tauri::{App, Window, WindowBuilder, WindowUrl};

#[cfg(target_os = "macos")]
use tauri::TitleBarStyle;
use tauri::{Theme, TitleBarStyle};

pub fn build_window(app: &mut App, config: PakeConfig, _data_dir: PathBuf) -> Window {
let window_config = config
Expand Down
4 changes: 3 additions & 1 deletion src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ mod util;
use app::{invoke, menu, window};
use invoke::{download_file, download_file_by_binary};
use menu::{get_system_tray, system_tray_handle};
use std::time::Duration;
use tauri::{GlobalShortcutManager, Manager};
use util::{get_data_dir, get_pake_config};
use window::build_window;

#[cfg(target_os = "macos")]
use std::time::Duration;

pub fn run_app() {
let (pake_config, tauri_config) = get_pake_config();
let data_dir = get_data_dir(tauri_config);
Expand Down

0 comments on commit e89047d

Please sign in to comment.