@@ -443,7 +443,7 @@ public void Releasify(string package, string targetDir = null, string packagesDi
443
443
var newestFullRelease = releaseEntries . MaxBy ( x => x . Version ) . Where ( x => ! x . IsDelta ) . First ( ) ;
444
444
445
445
File . Copy ( bootstrapperExe , targetSetupExe , true ) ;
446
- var zipPath = createSetupEmbeddedZip ( Path . Combine ( di . FullName , newestFullRelease . Filename ) , di . FullName , backgroundGif , signingOpts ) . Result ;
446
+ var zipPath = createSetupEmbeddedZip ( Path . Combine ( di . FullName , newestFullRelease . Filename ) , di . FullName , backgroundGif , signingOpts , setupIcon ) . Result ;
447
447
448
448
var writeZipToSetup = Utility . FindHelperExecutable ( "WriteZipToSetup.exe" ) ;
449
449
@@ -581,7 +581,7 @@ void waitForParentToExit()
581
581
}
582
582
}
583
583
584
- async Task < string > createSetupEmbeddedZip ( string fullPackage , string releasesDir , string backgroundGif , string signingOpts )
584
+ async Task < string > createSetupEmbeddedZip ( string fullPackage , string releasesDir , string backgroundGif , string signingOpts , string setupIcon )
585
585
{
586
586
string tempPath ;
587
587
@@ -598,6 +598,12 @@ async Task<string> createSetupEmbeddedZip(string fullPackage, string releasesDir
598
598
} , "Failed to write animated GIF to temp dir: " + tempPath ) ;
599
599
}
600
600
601
+ if ( ! String . IsNullOrWhiteSpace ( setupIcon ) ) {
602
+ this . ErrorIfThrows ( ( ) => {
603
+ File . Copy ( setupIcon , Path . Combine ( tempPath , "setupIcon.ico" ) ) ;
604
+ } , "Failed to write icon to temp dir: " + tempPath ) ;
605
+ }
606
+
601
607
var releases = new [ ] { ReleaseEntry . GenerateFromFile ( fullPackage ) } ;
602
608
ReleaseEntry . WriteReleaseFile ( releases , Path . Combine ( tempPath , "RELEASES" ) ) ;
603
609
0 commit comments