russellbanks / Komac

The Community Manifest Creator for WinGet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Brackets not a valid delimiter around an architecture in a URL

vikingnope opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

When doing Komac new and adding 2 or more installer links, the program decides to give them both or all the same architecture 'x86', could we either have it so that we tell the program what architecture it is, or it detects it automatically?

Komac does detect architectures automatically but sometimes installers incorrectly record what architecture they are so Komac has fallback mechanisms.

Could you possibly provide what URLs you used so I can take a look at the installers?

Thanks for providing the URLs. Komac finds architectures in URLs by first looking for a known architecture (E.g. x64) surrounded by delimiters. It does this because otherwise it would identify apps like ArmCord as always being the arm architecture.

In this case, brackets weren't in the delimiters it looks for so it checks what architecture the exe says it is, which is x86 (All Inno installers do). I've fixed this by adding brackets as delimiters to look for in a URL.

Thanks a lot