pake-cli 3.2.11 → 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 +2 -2
- package/package.json +2 -2
- package/src-tauri/.cargo/config.toml +6 -0
- package/src-tauri/.pake/pake.json +33 -0
- package/src-tauri/.pake/tauri.conf.json +24 -0
- package/src-tauri/.pake/tauri.linux.conf.json +13 -0
- package/src-tauri/.pake/tauri.macos.conf.json +15 -0
- package/src-tauri/.pake/tauri.windows.conf.json +15 -0
- package/src-tauri/src/lib.rs +8 -2
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.
|
|
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"
|
|
@@ -56,7 +56,7 @@ var scripts = {
|
|
|
56
56
|
build: "npm run tauri build --",
|
|
57
57
|
"build:debug": "npm run tauri build -- --debug",
|
|
58
58
|
"build:mac": "npm run tauri build -- --target universal-apple-darwin",
|
|
59
|
-
"build:config": "chmod +x
|
|
59
|
+
"build:config": "chmod +x scripts/configure-tauri.mjs && node scripts/configure-tauri.mjs",
|
|
60
60
|
analyze: "cd src-tauri && cargo bloat --release --crates",
|
|
61
61
|
tauri: "tauri",
|
|
62
62
|
cli: "cross-env NODE_ENV=development rollup -c -w",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pake-cli",
|
|
3
|
-
"version": "3.2.
|
|
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"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"build": "npm run tauri build --",
|
|
35
35
|
"build:debug": "npm run tauri build -- --debug",
|
|
36
36
|
"build:mac": "npm run tauri build -- --target universal-apple-darwin",
|
|
37
|
-
"build:config": "chmod +x
|
|
37
|
+
"build:config": "chmod +x scripts/configure-tauri.mjs && node scripts/configure-tauri.mjs",
|
|
38
38
|
"analyze": "cd src-tauri && cargo bloat --release --crates",
|
|
39
39
|
"tauri": "tauri",
|
|
40
40
|
"cli": "cross-env NODE_ENV=development rollup -c -w",
|
|
@@ -8,3 +8,9 @@ registry = "sparse+https://rsproxy.cn/index/"
|
|
|
8
8
|
index = "https://rsproxy.cn/crates.io-index"
|
|
9
9
|
[net]
|
|
10
10
|
git-fetch-with-cli = true
|
|
11
|
+
|
|
12
|
+
[env]
|
|
13
|
+
# Fix for macOS 26 Beta compatibility issues
|
|
14
|
+
# Forces use of compatible SDK when building on macOS 26 Beta
|
|
15
|
+
MACOSX_DEPLOYMENT_TARGET = "15.5"
|
|
16
|
+
SDKROOT = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk"
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"windows": [
|
|
3
|
+
{
|
|
4
|
+
"url": "https://weekly.tw93.fun",
|
|
5
|
+
"url_type": "web",
|
|
6
|
+
"hide_title_bar": false,
|
|
7
|
+
"fullscreen": false,
|
|
8
|
+
"width": 1200,
|
|
9
|
+
"height": 780,
|
|
10
|
+
"resizable": true,
|
|
11
|
+
"always_on_top": false,
|
|
12
|
+
"dark_mode": false,
|
|
13
|
+
"activation_shortcut": "",
|
|
14
|
+
"disabled_web_shortcuts": false,
|
|
15
|
+
"hide_on_close": true,
|
|
16
|
+
"incognito": false,
|
|
17
|
+
"title": null
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"user_agent": {
|
|
21
|
+
"macos": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15",
|
|
22
|
+
"linux": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36",
|
|
23
|
+
"windows": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
|
|
24
|
+
},
|
|
25
|
+
"system_tray": {
|
|
26
|
+
"macos": false,
|
|
27
|
+
"linux": true,
|
|
28
|
+
"windows": true
|
|
29
|
+
},
|
|
30
|
+
"system_tray_path": "png/icon_512.png",
|
|
31
|
+
"inject": [],
|
|
32
|
+
"proxy_url": ""
|
|
33
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"productName": "TestWindowPosition",
|
|
3
|
+
"identifier": "com.pake.33f03a",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"app": {
|
|
6
|
+
"withGlobalTauri": true
|
|
7
|
+
},
|
|
8
|
+
"build": {
|
|
9
|
+
"frontendDist": "../dist"
|
|
10
|
+
},
|
|
11
|
+
"bundle": {
|
|
12
|
+
"icon": [
|
|
13
|
+
"/private/var/folders/v3/4mpcxc0564j9qhpf8jpf6r_r0000gp/T/tmp-42188-mH4TwtV55OLm/converted-icons/testwindowposition.icns"
|
|
14
|
+
],
|
|
15
|
+
"active": true,
|
|
16
|
+
"macOS": {},
|
|
17
|
+
"targets": [
|
|
18
|
+
"dmg"
|
|
19
|
+
],
|
|
20
|
+
"resources": [
|
|
21
|
+
"icons/testwindowposition.icns"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bundle": {
|
|
3
|
+
"icon": [
|
|
4
|
+
"/private/var/folders/v3/4mpcxc0564j9qhpf8jpf6r_r0000gp/T/tmp-42188-mH4TwtV55OLm/converted-icons/testwindowposition.icns"
|
|
5
|
+
],
|
|
6
|
+
"active": true,
|
|
7
|
+
"macOS": {},
|
|
8
|
+
"targets": [
|
|
9
|
+
"dmg"
|
|
10
|
+
],
|
|
11
|
+
"resources": [
|
|
12
|
+
"icons/testwindowposition.icns"
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bundle": {
|
|
3
|
+
"icon": ["png/weekly_256.ico", "png/weekly_32.ico"],
|
|
4
|
+
"active": true,
|
|
5
|
+
"resources": ["png/weekly_32.ico"],
|
|
6
|
+
"targets": ["msi"],
|
|
7
|
+
"windows": {
|
|
8
|
+
"digestAlgorithm": "sha256",
|
|
9
|
+
"wix": {
|
|
10
|
+
"language": ["en-US"],
|
|
11
|
+
"template": "assets/main.wxs"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
package/src-tauri/src/lib.rs
CHANGED
|
@@ -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
|
-
|
|
55
|
-
window
|
|
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| {
|