pake-cli 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -1
- package/package.json +1 -1
- package/src-tauri/src/lib.rs +3 -3
package/dist/cli.js
CHANGED
|
@@ -20,7 +20,7 @@ import * as psl from 'psl';
|
|
|
20
20
|
import isUrl from 'is-url';
|
|
21
21
|
|
|
22
22
|
var name = "pake-cli";
|
|
23
|
-
var version$1 = "3.0.
|
|
23
|
+
var version$1 = "3.0.3";
|
|
24
24
|
var description = "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。";
|
|
25
25
|
var engines = {
|
|
26
26
|
node: ">=16.0.0"
|
package/package.json
CHANGED
package/src-tauri/src/lib.rs
CHANGED
|
@@ -101,10 +101,10 @@ pub fn run_app() {
|
|
|
101
101
|
|
|
102
102
|
Ok(())
|
|
103
103
|
})
|
|
104
|
-
.on_window_event(|
|
|
104
|
+
.on_window_event(|_window, _event| {
|
|
105
105
|
#[cfg(target_os = "macos")]
|
|
106
|
-
if let tauri::WindowEvent::CloseRequested { api, .. } =
|
|
107
|
-
let window =
|
|
106
|
+
if let tauri::WindowEvent::CloseRequested { api, .. } = _event {
|
|
107
|
+
let window = _window.clone();
|
|
108
108
|
{
|
|
109
109
|
tauri::async_runtime::spawn(async move {
|
|
110
110
|
if window.is_fullscreen().unwrap_or(false) {
|