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 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.0";
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: 3,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pake-cli",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "description": "๐Ÿคฑ๐Ÿป Turn any webpage into a desktop app with one command. ๐Ÿคฑ๐Ÿป ไธ€้”ฎๆ‰“ๅŒ…็ฝ‘้กต็”Ÿๆˆ่ฝป้‡ๆกŒ้ขๅบ”็”จใ€‚",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -2588,7 +2588,7 @@ dependencies = [
2588
2588
 
2589
2589
  [[package]]
2590
2590
  name = "pake"
2591
- version = "3.6.0"
2591
+ version = "3.6.1"
2592
2592
  dependencies = [
2593
2593
  "serde",
2594
2594
  "serde_json",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "pake"
3
- version = "3.6.0"
3
+ version = "3.6.1"
4
4
  description = "๐Ÿคฑ๐Ÿป Turn any webpage into a desktop app with Rust."
5
5
  authors = ["Tw93"]
6
6
  license = "MIT"
@@ -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]