Skip to content

Commit

Permalink
fix: fix order of updater prios
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars committed Jun 29, 2024
1 parent 913589e commit 109df02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/upload-version-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export async function uploadVersionJSON({
function signaturePriority(signaturePath: string) {
const priorities = updaterJsonPreferNsis
? ['.nsis.zip.sig', '.exe.sig', '.msi.zip.sig', '.msi.sig']
: ['.msi.sig', '.nsis.zip.sig', '.msi.zip.sig', '.exe.sig'];
: ['.msi.sig', '.msi.zip.sig', '.nsis.zip.sig', '.exe.sig'];
for (const [index, extension] of priorities.entries()) {
if (signaturePath.endsWith(extension)) {
return 100 - index;
Expand Down

0 comments on commit 109df02

Please sign in to comment.