Fladder/.github
Tamim Baschour f7f53d1656
[Improvement] Fix RPATHs for shared libraries and binary in Linux builds (#41)
## Pull Request Description

This updates the RPATHs for the shared libraries and the main executable
in the Linux build. Currently, the RPATH points to a path specific to
the GitHub Actions runner, which could cause issues.


Example of current RPATH from the GitHub runner:
```
❯ patchelf --print-rpath ./lib/libdynamic_color_plugin.so
/home/runner/work/Fladder/Fladder/linux/flutter/ephemeral
```
after this change:
```
❯ patchelf --print-rpath ./lib/libdynamic_color_plugin.so
$ORIGIN
```

Changes:

- Add a step in the Actions workflow to set the RPATH for the libraries
and the executable using patchelf.
- Changed the RPATH to `$ORIGIN` for the shared libraries and ensure the
main executable looks for its libraries in the lib directory next to it
by using `$ORIGIN/lib`.



## Checklist

- [ ] If a new package was added, did you ensure it works for all
supported platforms? Is the package also well maintained?
- [ ] Did you add localization for any text? If yes, did you sort the
.arb file using ```arb_utils sort <INPUT_FILE>```?
- [ ] Check that any changes are related to the issue at hand.
2024-10-18 18:24:29 +02:00
..
ISSUE_TEMPLATE Updated templates 2024-10-16 16:50:33 +02:00
workflows [Improvement] Fix RPATHs for shared libraries and binary in Linux builds (#41) 2024-10-18 18:24:29 +02:00
PULL_REQUEST_TEMPLATE.md Updated templates 2024-10-16 16:50:33 +02:00