Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
vikingnope opened this issue Apr 17, 2024 · 4 comments
Closed
1 task done
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@vikingnope
Copy link

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?

@vikingnope vikingnope added bug Something isn't working help wanted Extra attention is needed labels Apr 17, 2024
@russellbanks
Copy link
Owner

russellbanks commented Apr 28, 2024

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?

@vikingnope
Copy link
Author

https://epa.gov/system/files/other-files/2023-08/swmm524(x86)_setup.exe

https://epa.gov/system/files/other-files/2023-08/swmm524(x64)_setup.exe

As you can see here with the first commit they were the same architecture: microsoft/winget-pkgs@becb8e6

After I had to do another commit to fix that: microsoft/winget-pkgs@1eb5c0d

@russellbanks
Copy link
Owner

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.

@russellbanks russellbanks changed the title [Bug]: 2 installer links, same architecture [Bug]: Brackets not a valid delimiter around an architecture in a URL Apr 29, 2024
@vikingnope
Copy link
Author

Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants