pake-cli 3.6.0 โ 3.6.1
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 +4 -3
- package/package.json +1 -1
- package/src-tauri/Cargo.lock +1 -1
- package/src-tauri/Cargo.toml +1 -1
- package/src-tauri/src/app/invoke.rs +6 -1
package/dist/cli.js
CHANGED
|
@@ -23,7 +23,7 @@ import sharp from 'sharp';
|
|
|
23
23
|
import * as psl from 'psl';
|
|
24
24
|
|
|
25
25
|
var name = "pake-cli";
|
|
26
|
-
var version = "3.6.
|
|
26
|
+
var version = "3.6.1";
|
|
27
27
|
var description = "๐คฑ๐ป Turn any webpage into a desktop app with one command. ๐คฑ๐ป ไธ้ฎๆๅ
็ฝ้กต็ๆ่ฝป้ๆก้ขๅบ็จใ";
|
|
28
28
|
var engines = {
|
|
29
29
|
node: ">=18.0.0"
|
|
@@ -1444,8 +1444,8 @@ async function preprocessIcon(inputPath) {
|
|
|
1444
1444
|
create: {
|
|
1445
1445
|
width: metadata.width || 512,
|
|
1446
1446
|
height: metadata.height || 512,
|
|
1447
|
-
channels:
|
|
1448
|
-
background: ICON_CONFIG.whiteBackground,
|
|
1447
|
+
channels: 4,
|
|
1448
|
+
background: { ...ICON_CONFIG.whiteBackground, alpha: 1 },
|
|
1449
1449
|
},
|
|
1450
1450
|
})
|
|
1451
1451
|
.composite([{ input: inputPath }])
|
|
@@ -1490,6 +1490,7 @@ async function convertIconFormat(inputPath, appName) {
|
|
|
1490
1490
|
fit: 'contain',
|
|
1491
1491
|
background: ICON_CONFIG.transparentBackground,
|
|
1492
1492
|
})
|
|
1493
|
+
.ensureAlpha()
|
|
1493
1494
|
.png()
|
|
1494
1495
|
.toFile(outputPath);
|
|
1495
1496
|
return outputPath;
|
package/package.json
CHANGED
package/src-tauri/Cargo.lock
CHANGED
package/src-tauri/Cargo.toml
CHANGED
|
@@ -117,9 +117,9 @@ pub fn send_notification(app: AppHandle, params: NotificationParams) -> Result<(
|
|
|
117
117
|
|
|
118
118
|
#[command]
|
|
119
119
|
pub async fn update_theme_mode(app: AppHandle, mode: String) {
|
|
120
|
-
let window = app.get_webview_window("pake").unwrap();
|
|
121
120
|
#[cfg(target_os = "macos")]
|
|
122
121
|
{
|
|
122
|
+
let window = app.get_webview_window("pake").unwrap();
|
|
123
123
|
let theme = if mode == "dark" {
|
|
124
124
|
Theme::Dark
|
|
125
125
|
} else {
|
|
@@ -127,6 +127,11 @@ pub async fn update_theme_mode(app: AppHandle, mode: String) {
|
|
|
127
127
|
};
|
|
128
128
|
let _ = window.set_theme(Some(theme));
|
|
129
129
|
}
|
|
130
|
+
#[cfg(not(target_os = "macos"))]
|
|
131
|
+
{
|
|
132
|
+
let _ = app;
|
|
133
|
+
let _ = mode;
|
|
134
|
+
}
|
|
130
135
|
}
|
|
131
136
|
|
|
132
137
|
#[command]
|