Skip to content

Commit 49a85b0

Browse files
committed
3.6.1
1 parent 3bfaf95 commit 49a85b0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dist/cli.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import sharp from 'sharp';
2323
import * as psl from 'psl';
2424

2525
var name = "pake-cli";
26-
var version = "3.6.0";
26+
var version = "3.6.1";
2727
var description = "🤱🏻 Turn any webpage into a desktop app with one command. 🤱🏻 一键打包网页生成轻量桌面应用。";
2828
var engines = {
2929
node: ">=18.0.0"
@@ -1444,8 +1444,8 @@ async function preprocessIcon(inputPath) {
14441444
create: {
14451445
width: metadata.width || 512,
14461446
height: metadata.height || 512,
1447-
channels: 3,
1448-
background: ICON_CONFIG.whiteBackground,
1447+
channels: 4,
1448+
background: { ...ICON_CONFIG.whiteBackground, alpha: 1 },
14491449
},
14501450
})
14511451
.composite([{ input: inputPath }])
@@ -1490,6 +1490,7 @@ async function convertIconFormat(inputPath, appName) {
14901490
fit: 'contain',
14911491
background: ICON_CONFIG.transparentBackground,
14921492
})
1493+
.ensureAlpha()
14931494
.png()
14941495
.toFile(outputPath);
14951496
return outputPath;

0 commit comments

Comments
 (0)