Hi everyone!
I’m trying to build snap using snapcraft, but for some reason some files that are included in .gitignore
are not included in the final snap build. I’m using core22
and confinement: strict
For example, I have a config.json file
in the root of my project, it is also included in .gitignore
file, after running snapcraft and installing my snap I can’t find config.json in it’s place but It’s needed to run the app.
Perhaps I can somehow specify additional files to include.
I would be very grateful for your help.
And here is my snapcraft.yaml
:
version: git
summary: summary
description: description
confinement: strict
base: core22
apps:
my-app:
command: bin/my-app
daemon: simple
plugs:
- write-files
- network-bind
- network
plugs:
write-files:
interface: system-files
write:
- /etc/my-dir
parts:
my-app:
plugin: npm
npm-include-node: true
npm-node-version: 16.0.0
source: .
build-packages:
- build-essential
- pkg-config
- libsystemd-dev```