pake-cli 3.2.12 → 3.2.13

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 CHANGED
@@ -22,7 +22,7 @@ import sharp from 'sharp';
22
22
  import * as psl from 'psl';
23
23
 
24
24
  var name = "pake-cli";
25
- var version = "3.2.12";
25
+ var version = "3.2.13";
26
26
  var description = "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。";
27
27
  var engines = {
28
28
  node: ">=16.0.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pake-cli",
3
- "version": "3.2.12",
3
+ "version": "3.2.13",
4
4
  "description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。",
5
5
  "engines": {
6
6
  "node": ">=16.0.0"
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "windows": [
3
3
  {
4
- "url": "https://github.com",
4
+ "url": "https://weekly.tw93.fun",
5
5
  "url_type": "web",
6
- "hide_title_bar": true,
6
+ "hide_title_bar": false,
7
7
  "fullscreen": false,
8
8
  "width": 1200,
9
- "height": 800,
9
+ "height": 780,
10
10
  "resizable": true,
11
11
  "always_on_top": false,
12
12
  "dark_mode": false,
@@ -1,6 +1,6 @@
1
1
  {
2
- "productName": "GitHubMultiArch",
3
- "identifier": "com.pake.3097fc",
2
+ "productName": "TestWindowPosition",
3
+ "identifier": "com.pake.33f03a",
4
4
  "version": "1.0.0",
5
5
  "app": {
6
6
  "withGlobalTauri": true
@@ -10,15 +10,15 @@
10
10
  },
11
11
  "bundle": {
12
12
  "icon": [
13
- "/private/var/folders/v3/4mpcxc0564j9qhpf8jpf6r_r0000gp/T/tmp-59730-cMwk5THmpqtm/converted-icons/githubmultiarch.icns"
13
+ "/private/var/folders/v3/4mpcxc0564j9qhpf8jpf6r_r0000gp/T/tmp-42188-mH4TwtV55OLm/converted-icons/testwindowposition.icns"
14
14
  ],
15
15
  "active": true,
16
16
  "macOS": {},
17
17
  "targets": [
18
- "app"
18
+ "dmg"
19
19
  ],
20
20
  "resources": [
21
- "icons/githubmultiarch.icns"
21
+ "icons/testwindowposition.icns"
22
22
  ]
23
23
  }
24
24
  }
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "bundle": {
3
3
  "icon": [
4
- "/private/var/folders/v3/4mpcxc0564j9qhpf8jpf6r_r0000gp/T/tmp-59730-cMwk5THmpqtm/converted-icons/githubmultiarch.icns"
4
+ "/private/var/folders/v3/4mpcxc0564j9qhpf8jpf6r_r0000gp/T/tmp-42188-mH4TwtV55OLm/converted-icons/testwindowposition.icns"
5
5
  ],
6
6
  "active": true,
7
7
  "macOS": {},
8
8
  "targets": [
9
- "app"
9
+ "dmg"
10
10
  ],
11
11
  "resources": [
12
- "icons/githubmultiarch.icns"
12
+ "icons/testwindowposition.icns"
13
13
  ]
14
14
  }
15
15
  }
@@ -51,8 +51,14 @@ pub fn run_app() {
51
51
  let window = set_window(app, &pake_config, &tauri_config);
52
52
  set_system_tray(app.app_handle(), show_system_tray).unwrap();
53
53
  set_global_shortcut(app.app_handle(), activation_shortcut).unwrap();
54
- // Prevent flickering on the first open.
55
- window.show().unwrap();
54
+
55
+ // Show window after state restoration to prevent position flashing
56
+ let window_clone = window.clone();
57
+ tauri::async_runtime::spawn(async move {
58
+ tokio::time::sleep(tokio::time::Duration::from_millis(50)).await;
59
+ window_clone.show().unwrap();
60
+ });
61
+
56
62
  Ok(())
57
63
  })
58
64
  .on_window_event(move |_window, _event| {