Use smart preloading in your snaps to avoid hard coded parts that wold fail security.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
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
        build-packages:
          - gcc-multilib
          - g++-multilib

And precede your apps entry like this:

apps:
    app-name:
        command: bin/snapcraft-preload $SNAP/<binary>