pake-cli 2.0.0-alpha6 โ 2.0.0-alpha7
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/Cargo.toml +5 -2
- package/src-tauri/src/inject/style.js +0 -4
- package/src-tauri/src/main.rs +5 -0
package/dist/cli.js
CHANGED
|
@@ -2493,7 +2493,7 @@ class BuilderFactory {
|
|
|
2493
2493
|
}
|
|
2494
2494
|
|
|
2495
2495
|
var name = "pake-cli";
|
|
2496
|
-
var version = "2.0.0-
|
|
2496
|
+
var version = "2.0.0-alpha7";
|
|
2497
2497
|
var description = "๐คฑ๐ป Turn any webpage into a desktop app with Rust. ๐คฑ๐ป ๅพ็ฎๅ็็จ Rust ๆๅ
็ฝ้กต็ๆๅพๅฐ็ๆก้ข Appใ";
|
|
2498
2498
|
var engines = {
|
|
2499
2499
|
node: ">=16.0.0"
|
package/package.json
CHANGED
package/src-tauri/Cargo.toml
CHANGED
|
@@ -31,5 +31,8 @@ custom-protocol = ["tauri/custom-protocol"]
|
|
|
31
31
|
|
|
32
32
|
# Pay attention to the code size during optimization in order to generate smaller binary files.
|
|
33
33
|
# [profile.release]
|
|
34
|
-
#
|
|
35
|
-
#
|
|
34
|
+
# panic = "abort" # Strip expensive panic clean-up logic
|
|
35
|
+
# codegen-units = 1 # Compile crates one after another so the compiler can optimize better
|
|
36
|
+
# lto = true # Enables link to optimizations
|
|
37
|
+
# opt-level = "s" # Optimize for binary size
|
|
38
|
+
# strip = true # Remove debug symbols
|
package/src-tauri/src/main.rs
CHANGED
|
@@ -55,7 +55,12 @@ pub fn run_app() {
|
|
|
55
55
|
})
|
|
56
56
|
.on_window_event(|event| {
|
|
57
57
|
if let tauri::WindowEvent::CloseRequested { api, .. } = event.event() {
|
|
58
|
+
#[cfg(target_os = "macos")]
|
|
58
59
|
event.window().minimize().unwrap();
|
|
60
|
+
|
|
61
|
+
#[cfg(not(target_os = "macos"))]
|
|
62
|
+
event.window().close().unwrap();
|
|
63
|
+
|
|
59
64
|
api.prevent_close();
|
|
60
65
|
}
|
|
61
66
|
})
|