File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import sharp from 'sharp';
2323import * as psl from 'psl' ;
2424
2525var name = "pake-cli" ;
26- var version = "3.6.0 " ;
26+ var version = "3.6.1 " ;
2727var description = "🤱🏻 Turn any webpage into a desktop app with one command. 🤱🏻 一键打包网页生成轻量桌面应用。" ;
2828var 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 ;
You can’t perform that action at this time.
0 commit comments