Skip to content

Commit

Permalink
fix: msi detection for tauri v2
Browse files Browse the repository at this point in the history
fixes #1008
  • Loading branch information
FabianLars committed Jan 25, 2025
1 parent 5fbe5b8 commit a7e0ea0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/fix-wix-ver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
action: patch
---

Fixed an issue that made the action fail to find .msi packages for tauri v2 apps with numeric build numbers (`1.0.0-0`).
23 changes: 23 additions & 0 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export async function buildProject(

const winArtifacts: string[] = [];

// wix v1
langs.forEach((lang) => {
winArtifacts.push(
join(
Expand All @@ -155,6 +156,28 @@ export async function buildProject(
);
});

// wix v2
langs.forEach((lang) => {
winArtifacts.push(
join(
artifactsPath,
`bundle/msi/${app.name}_${app.version}_${arch}_${lang}.msi`,
),
join(
artifactsPath,
`bundle/msi/${app.name}_${app.version}_${arch}_${lang}.msi.sig`,
),
join(
artifactsPath,
`bundle/msi/${app.name}_${app.version}_${arch}_${lang}.msi.zip`,
),
join(
artifactsPath,
`bundle/msi/${app.name}_${app.version}_${arch}_${lang}.msi.zip.sig`,
),
);
});

winArtifacts.push(
join(
artifactsPath,
Expand Down

0 comments on commit a7e0ea0

Please sign in to comment.