Skip to content

Commit 8145cff

Browse files
committed
fix: update signature matching logic
1 parent ba50c18 commit 8145cff

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/getPlatform.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,14 @@ export async function findAssetSignature(
6363
): Promise<string | null> {
6464
// check in our assets if we have a file: `fileName.sig`
6565
// by example fileName can be: App-1.0.0.zip
66-
67-
const foundSignature = assets.find(
68-
(asset) => asset.name.toLowerCase() === `${fileName.toLowerCase()}.sig`,
66+
console.log('matching: ', fileName)
67+
console.log(assets.map((a) => a.name))
68+
const matches = [
69+
`${fileName.toLowerCase()}.gz.sig`,
70+
`${fileName.toLowerCase()}.zip.sig`,
71+
]
72+
const foundSignature = assets.find((asset) =>
73+
matches.includes(asset.name.toLowerCase()),
6974
)
7075

7176
if (!foundSignature) {

0 commit comments

Comments
 (0)