File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ const setLinuxConfig = async ({ app, outDir }) => {
256256 GenericName : app . genericName ,
257257 NoDisplay : app . noDisplay ,
258258 Comment : app . comment ,
259- Icon : path . resolve ( outDir , 'package.nw' , path . basename ( app . icon ) ) ,
259+ Icon : app . icon ? path . resolve ( outDir , 'package.nw' , app . icon ) : '' ,
260260 Hidden : app . hidden ,
261261 OnlyShowIn : app . onlyShowIn ,
262262 NotShowIn : app . notShowIn ,
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ export const parse = async (options, pkg) => {
239239 options . app . name = options . app . name . replace ( / [ < > : " / \\ | ? * \u0000 - \u001F ] / g, '' ) ;
240240 }
241241 /* Path to where the icon currently is in the filesystem */
242- options . app . icon = options . app . icon ?? undefined ;
242+ options . app . icon = options . app . icon ?? pkg . window ?. icon ?? undefined ;
243243 if ( options . app . icon ) {
244244 options . app . icon = path . resolve ( options . app . icon ) ;
245245 }
You can’t perform that action at this time.
0 commit comments