Use smart preloading in your snaps to avoid hard coded parts that wold fail security.
C CMake Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CMakeLists.txt
README.md
preload.cpp
snapcraft-preload.in
snapcraft.yaml

README.md

Use

Add this as a part to your snapcraft.yaml:

parts:
    snapcraft-preload:
        source: https://github.com/sergiusens/snapcraft-preload.git
        plugin: cmake

And precede your apps entry like this:

apps:
    app-name:
        command: snapcraft-preload <binary>