Resolve "fix(packaging): Individual SightCalibrator package doesn't work on Linux"
requested to merge 915-fix-packaging-individual-sightcalibrator-package-doesn-t-work-on-linux into dev
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