Skip to content

Commit

Permalink
fix: expand macro for ${version}/.icon-ico/ dir on Window's install…
Browse files Browse the repository at this point in the history
…ers (#7763)
  • Loading branch information
NewSilen authored Sep 25, 2023
1 parent 84906bc commit 0cb1913
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/yellow-games-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"app-builder-lib": patch
---

fix: expand macro for ${version}/.icon-ico/ dir on Window's installers
3 changes: 2 additions & 1 deletion packages/app-builder-lib/src/platformPackager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ export abstract class PlatformPackager<DC extends PlatformSpecificBuildOptions>

// convert if need, validate size (it is a reason why tool is called even if file has target extension (already specified as foo.icns for example))
async resolveIcon(sources: Array<string>, fallbackSources: Array<string>, outputFormat: IconFormat): Promise<Array<IconInfo>> {
const output = this.expandMacro(this.config.directories!.output!);

Check warning on line 682 in packages/app-builder-lib/src/platformPackager.ts

View workflow job for this annotation

GitHub Actions / test-linux (ArtifactPublisherTest,BuildTest,ExtraBuildTest,RepoSlugTest,binDownloadTest,configura...

Delete `;`

Check warning on line 682 in packages/app-builder-lib/src/platformPackager.ts

View workflow job for this annotation

GitHub Actions / test-linux (snapTest,debTest,fpmTest,protonTest)

Delete `;`
const args = [
"icon",
"--format",
Expand All @@ -688,7 +689,7 @@ export abstract class PlatformPackager<DC extends PlatformSpecificBuildOptions>
"--root",
this.projectDir,
"--out",
path.resolve(this.projectDir, this.config.directories!.output!, `.icon-${outputFormat}`),
path.resolve(this.projectDir, output, `.icon-${outputFormat}`),
]
for (const source of sources) {
args.push("--input", source)
Expand Down

0 comments on commit 0cb1913

Please sign in to comment.