Skip to content

Resolve "fix(packaging): Individual SightCalibrator package doesn't work on Linux"

Description

We rely on detecting the keyword "lib" or "bin" in the path. This stops at any word containing such string, such as "SightCalibrator". This MR adds slashes delimiters to avoid false positives and does the lookup from the back to ensure finding the last "/lib/" occurrence in the path.

Closes #915 (closed)

How to test it?

Without the MR:

  • Unpack any application
  • Rename the extracted folder by "SightCalibrator", or "foolib" or just "lib"
  • Run the application
  • This should fail

With the MR:

  • Unpack any application
  • Rename the extracted folder by "SightCalibrator", or "foolib" or just "lib"
  • Run the application
  • This should succeed
Edited by Flavien BRIDAULT

Merge request reports