pake-cli 3.2.0-beta1 → 3.2.0-beta15
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 +313 -70
- package/dist/dev.js +276 -72
- package/dist/dev.js.map +1 -1
- package/package.json +16 -13
- package/src-tauri/.cargo/config.toml +19 -4
- 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 +16 -0
- package/src-tauri/.pake/tauri.macos.conf.json +15 -0
- package/src-tauri/.pake/tauri.windows.conf.json +15 -0
- package/src-tauri/Cargo.lock +57 -27
- package/src-tauri/Cargo.toml +2 -2
- package/src-tauri/gen/schemas/acl-manifests.json +1 -1
- package/src-tauri/gen/schemas/desktop-schema.json +24 -0
- package/src-tauri/gen/schemas/macOS-schema.json +24 -0
- package/src-tauri/pake.json +2 -1
- package/src-tauri/src/app/config.rs +2 -0
- package/src-tauri/src/app/window.rs +11 -7
- package/src-tauri/tauri.linux.conf.json +2 -2
- package/cli.js +0 -2
|
@@ -1826,6 +1826,12 @@
|
|
|
1826
1826
|
"const": "core:window:allow-set-focus",
|
|
1827
1827
|
"markdownDescription": "Enables the set_focus command without any pre-configured scope."
|
|
1828
1828
|
},
|
|
1829
|
+
{
|
|
1830
|
+
"description": "Enables the set_focusable command without any pre-configured scope.",
|
|
1831
|
+
"type": "string",
|
|
1832
|
+
"const": "core:window:allow-set-focusable",
|
|
1833
|
+
"markdownDescription": "Enables the set_focusable command without any pre-configured scope."
|
|
1834
|
+
},
|
|
1829
1835
|
{
|
|
1830
1836
|
"description": "Enables the set_fullscreen command without any pre-configured scope.",
|
|
1831
1837
|
"type": "string",
|
|
@@ -1898,6 +1904,12 @@
|
|
|
1898
1904
|
"const": "core:window:allow-set-shadow",
|
|
1899
1905
|
"markdownDescription": "Enables the set_shadow command without any pre-configured scope."
|
|
1900
1906
|
},
|
|
1907
|
+
{
|
|
1908
|
+
"description": "Enables the set_simple_fullscreen command without any pre-configured scope.",
|
|
1909
|
+
"type": "string",
|
|
1910
|
+
"const": "core:window:allow-set-simple-fullscreen",
|
|
1911
|
+
"markdownDescription": "Enables the set_simple_fullscreen command without any pre-configured scope."
|
|
1912
|
+
},
|
|
1901
1913
|
{
|
|
1902
1914
|
"description": "Enables the set_size command without any pre-configured scope.",
|
|
1903
1915
|
"type": "string",
|
|
@@ -2270,6 +2282,12 @@
|
|
|
2270
2282
|
"const": "core:window:deny-set-focus",
|
|
2271
2283
|
"markdownDescription": "Denies the set_focus command without any pre-configured scope."
|
|
2272
2284
|
},
|
|
2285
|
+
{
|
|
2286
|
+
"description": "Denies the set_focusable command without any pre-configured scope.",
|
|
2287
|
+
"type": "string",
|
|
2288
|
+
"const": "core:window:deny-set-focusable",
|
|
2289
|
+
"markdownDescription": "Denies the set_focusable command without any pre-configured scope."
|
|
2290
|
+
},
|
|
2273
2291
|
{
|
|
2274
2292
|
"description": "Denies the set_fullscreen command without any pre-configured scope.",
|
|
2275
2293
|
"type": "string",
|
|
@@ -2342,6 +2360,12 @@
|
|
|
2342
2360
|
"const": "core:window:deny-set-shadow",
|
|
2343
2361
|
"markdownDescription": "Denies the set_shadow command without any pre-configured scope."
|
|
2344
2362
|
},
|
|
2363
|
+
{
|
|
2364
|
+
"description": "Denies the set_simple_fullscreen command without any pre-configured scope.",
|
|
2365
|
+
"type": "string",
|
|
2366
|
+
"const": "core:window:deny-set-simple-fullscreen",
|
|
2367
|
+
"markdownDescription": "Denies the set_simple_fullscreen command without any pre-configured scope."
|
|
2368
|
+
},
|
|
2345
2369
|
{
|
|
2346
2370
|
"description": "Denies the set_size command without any pre-configured scope.",
|
|
2347
2371
|
"type": "string",
|
|
@@ -1826,6 +1826,12 @@
|
|
|
1826
1826
|
"const": "core:window:allow-set-focus",
|
|
1827
1827
|
"markdownDescription": "Enables the set_focus command without any pre-configured scope."
|
|
1828
1828
|
},
|
|
1829
|
+
{
|
|
1830
|
+
"description": "Enables the set_focusable command without any pre-configured scope.",
|
|
1831
|
+
"type": "string",
|
|
1832
|
+
"const": "core:window:allow-set-focusable",
|
|
1833
|
+
"markdownDescription": "Enables the set_focusable command without any pre-configured scope."
|
|
1834
|
+
},
|
|
1829
1835
|
{
|
|
1830
1836
|
"description": "Enables the set_fullscreen command without any pre-configured scope.",
|
|
1831
1837
|
"type": "string",
|
|
@@ -1898,6 +1904,12 @@
|
|
|
1898
1904
|
"const": "core:window:allow-set-shadow",
|
|
1899
1905
|
"markdownDescription": "Enables the set_shadow command without any pre-configured scope."
|
|
1900
1906
|
},
|
|
1907
|
+
{
|
|
1908
|
+
"description": "Enables the set_simple_fullscreen command without any pre-configured scope.",
|
|
1909
|
+
"type": "string",
|
|
1910
|
+
"const": "core:window:allow-set-simple-fullscreen",
|
|
1911
|
+
"markdownDescription": "Enables the set_simple_fullscreen command without any pre-configured scope."
|
|
1912
|
+
},
|
|
1901
1913
|
{
|
|
1902
1914
|
"description": "Enables the set_size command without any pre-configured scope.",
|
|
1903
1915
|
"type": "string",
|
|
@@ -2270,6 +2282,12 @@
|
|
|
2270
2282
|
"const": "core:window:deny-set-focus",
|
|
2271
2283
|
"markdownDescription": "Denies the set_focus command without any pre-configured scope."
|
|
2272
2284
|
},
|
|
2285
|
+
{
|
|
2286
|
+
"description": "Denies the set_focusable command without any pre-configured scope.",
|
|
2287
|
+
"type": "string",
|
|
2288
|
+
"const": "core:window:deny-set-focusable",
|
|
2289
|
+
"markdownDescription": "Denies the set_focusable command without any pre-configured scope."
|
|
2290
|
+
},
|
|
2273
2291
|
{
|
|
2274
2292
|
"description": "Denies the set_fullscreen command without any pre-configured scope.",
|
|
2275
2293
|
"type": "string",
|
|
@@ -2342,6 +2360,12 @@
|
|
|
2342
2360
|
"const": "core:window:deny-set-shadow",
|
|
2343
2361
|
"markdownDescription": "Denies the set_shadow command without any pre-configured scope."
|
|
2344
2362
|
},
|
|
2363
|
+
{
|
|
2364
|
+
"description": "Denies the set_simple_fullscreen command without any pre-configured scope.",
|
|
2365
|
+
"type": "string",
|
|
2366
|
+
"const": "core:window:deny-set-simple-fullscreen",
|
|
2367
|
+
"markdownDescription": "Denies the set_simple_fullscreen command without any pre-configured scope."
|
|
2368
|
+
},
|
|
2345
2369
|
{
|
|
2346
2370
|
"description": "Denies the set_size command without any pre-configured scope.",
|
|
2347
2371
|
"type": "string",
|
package/src-tauri/pake.json
CHANGED
|
@@ -6,9 +6,6 @@ use tauri::{App, Config, Url, WebviewUrl, WebviewWindow, WebviewWindowBuilder};
|
|
|
6
6
|
#[cfg(target_os = "macos")]
|
|
7
7
|
use tauri::{Theme, TitleBarStyle};
|
|
8
8
|
|
|
9
|
-
#[cfg(target_os = "windows")]
|
|
10
|
-
use tauri::Theme;
|
|
11
|
-
|
|
12
9
|
pub fn set_window(app: &mut App, config: &PakeConfig, tauri_config: &Config) -> WebviewWindow {
|
|
13
10
|
let package_name = tauri_config.clone().product_name.unwrap();
|
|
14
11
|
let _data_dir = get_data_dir(app.handle(), package_name);
|
|
@@ -31,8 +28,14 @@ pub fn set_window(app: &mut App, config: &PakeConfig, tauri_config: &Config) ->
|
|
|
31
28
|
serde_json::to_string(&window_config).unwrap()
|
|
32
29
|
);
|
|
33
30
|
|
|
31
|
+
let window_title = window_config
|
|
32
|
+
.title
|
|
33
|
+
.as_ref()
|
|
34
|
+
.map(|t| t.as_str())
|
|
35
|
+
.unwrap_or("");
|
|
36
|
+
|
|
34
37
|
let mut window_builder = WebviewWindowBuilder::new(app, "pake", url)
|
|
35
|
-
.title(
|
|
38
|
+
.title(window_title)
|
|
36
39
|
.visible(false)
|
|
37
40
|
.user_agent(user_agent)
|
|
38
41
|
.resizable(window_config.resizable)
|
|
@@ -40,6 +43,7 @@ pub fn set_window(app: &mut App, config: &PakeConfig, tauri_config: &Config) ->
|
|
|
40
43
|
.inner_size(window_config.width, window_config.height)
|
|
41
44
|
.always_on_top(window_config.always_on_top)
|
|
42
45
|
.disable_drag_drop_handler()
|
|
46
|
+
.incognito(window_config.incognito)
|
|
43
47
|
.initialization_script(&config_script)
|
|
44
48
|
.initialization_script(include_str!("../inject/component.js"))
|
|
45
49
|
.initialization_script(include_str!("../inject/event.js"))
|
|
@@ -74,7 +78,7 @@ pub fn set_window(app: &mut App, config: &PakeConfig, tauri_config: &Config) ->
|
|
|
74
78
|
window_builder = window_builder
|
|
75
79
|
.data_directory(_data_dir)
|
|
76
80
|
.title(app.package_info().name.clone());
|
|
77
|
-
|
|
81
|
+
|
|
78
82
|
// Set theme to None for automatic system theme detection on Windows
|
|
79
83
|
// This allows the window to respond to system theme changes automatically
|
|
80
84
|
window_builder = window_builder.theme(None);
|
|
@@ -85,8 +89,8 @@ pub fn set_window(app: &mut App, config: &PakeConfig, tauri_config: &Config) ->
|
|
|
85
89
|
window_builder = window_builder
|
|
86
90
|
.data_directory(_data_dir)
|
|
87
91
|
.title(app.package_info().name.clone());
|
|
88
|
-
|
|
89
|
-
// Set theme to None for automatic system theme detection on Linux
|
|
92
|
+
|
|
93
|
+
// Set theme to None for automatic system theme detection on Linux
|
|
90
94
|
// This allows the window to respond to system theme changes automatically
|
|
91
95
|
window_builder = window_builder.theme(None);
|
|
92
96
|
}
|
package/cli.js
DELETED