We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba50c18 commit 8145cffCopy full SHA for 8145cff
src/getPlatform.ts
@@ -63,9 +63,14 @@ export async function findAssetSignature(
63
): Promise<string | null> {
64
// check in our assets if we have a file: `fileName.sig`
65
// by example fileName can be: App-1.0.0.zip
66
-
67
- const foundSignature = assets.find(
68
- (asset) => asset.name.toLowerCase() === `${fileName.toLowerCase()}.sig`,
+ console.log('matching: ', fileName)
+ console.log(assets.map((a) => a.name))
+ 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()),
74
)
75
76
if (!foundSignature) {
0 commit comments