◐ Shell
clean mode source ↗

Add automatic excludelist updating at runtime and ignore-excludelist CLI option by Korne127 · Pull Request #287 · linuxdeploy/linuxdeploy

added 2 commits

July 25, 2024 02:10
An automatic excludelist updating mechanism has been added at runtime.

To do this, each time the linuxdeploy command is invoked, it now tries to download the current version of the excludelist, parses it and saves it as a vector. If any of these steps fail, a warning is emitted.

For each library that should be tested against the excludelist, the newly downloaded excludelist is now used if it has been saved correctly, and the pre-packaged excludelist otherwise.

This feature has been added as previously, it had required a new linuxdeploy version to be shipped and downloaded / used by everyone in order for excludelist changes to take effect. This also meant that updates had to "trickle down" (e.g. when someone uses a framework like tauri that itself uses linuxdeploy) and it created a single point of failure (a possible missing new linuxdeploy version).
A new CLI option (--ignore-excludelist) has been added to linuxdeploy. When using it, the excludelist of the core libraries is ignored and the core libraries that are depended upon are included in the AppDir.
The excludelist updating will only take place if this option is not set (as it's not necessary otherwise).

Additionally, the code quality has been improved.

@Korne127 Korne127 changed the title Add automatic excludelist updating at runtime Add automatic excludelist updating at runtime and ignore-excludelist CLI flag

Aug 24, 2024

@Korne127 Korne127 changed the title Add automatic excludelist updating at runtime and ignore-excludelist CLI flag Add automatic excludelist updating at runtime and ignore-excludelist CLI option

Aug 24, 2024