So I’ve read also: this: How to copy just one file using the dump plugin? Then also this: Build and staging dependencies - #2 by mwhudson And also this: Parts lifecycle | Snapcraft documentation and this: https://snapcraft.io/docs/snapcraft-parts-metadata#heading--stage And finally I checked this yaml: snapd/build-aux/snap/snapcraft.yaml at master · snapcore/snapd · GitHub But stage did not help. My YAML is now:
name: autoskola3 # you probably want to 'snapcraft register <name>'
base: core22 # the base snap is the execution environment for this snap
version: '3.0' # just for humans, typically '1.2+git' or '1.3.2'
summary: Testing app for drivers with 2000 questions. # 79 char long summary
description: |
This app offers 2000 questions in Slovak and English for drivers to be tested
before main exam in Slovak Republic. More on https://hrubos.org Just download and be ready before driving exam.
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots
parts:
autoskola3:
# See 'snapcraft plugins'
plugin: rust
source: ./
build-packages:
- cargo
- libssl-dev
stage-packages:
- libxkbcommon-x11-0
autoskola3-resources:
plugin: dump
source: ./
autoskola3-copy-resources:
plugin: nil
stage:
- ./*
apps:
autoskola3:
command: bin/autoskola3
common-id: org.hrubos.autoskola3
extensions: [gnome]
plugs:
- network
Still getting this pic: