Skip to content

Commit

Permalink
fix: windows aarch64 bundle not found (#516)
Browse files Browse the repository at this point in the history
* fix windows aarch64 bundle not found

* fix windows aarch64 bundle not found

* Apply suggestions from code review

---------

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
  • Loading branch information
1595901624 and FabianLars committed Jul 3, 2023
1 parent fc79a45 commit a21f29a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/fix-windows-aarch64-bundle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
action: patch:bug
---

Fix detection of windows arm64 bundles.
8 changes: 7 additions & 1 deletion src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,13 @@ export async function buildProject(
join(artifactsPath, `bundle/macos/${fileAppName}.app.tar.gz.sig`),
].map((path) => ({ path, arch }));
} else if (targetInfo.platform === 'windows') {
arch = arch.startsWith('i') ? 'x86' : 'x64';
if (arch.startsWith('i')) {
arch = 'x86';
} else if (arch === 'aarch64') {
arch = 'arm64';
} else {
arch = 'x64';
}

// If multiple Wix languages are specified, multiple installers (.msi) will be made
// The .zip and .sig are only generated for the first specified language
Expand Down

0 comments on commit a21f29a

Please sign in to comment.