Unable to find bin source inside install dir of parts during snapcraft build cycle

Hello Team,
I tried to build a snap, but building getting failed due to file present in bin dir are not present inside the install dir. of part.
May be i am missing something which i can’t figure out please help me to understand the problem.
Appreciate your support slightly_smiling_face:

snapcraft.yaml:
name: classic-web-dm
version: ‘0.1’
summary: web dm for classic
description: web dm for clasic
grade: devel # must be ‘stable’ to release into candidate/stable channels
confinement: devmode # use ‘strict’ once you have the right plugs and slots

parts:
web-dm:
source: .
plugin: python
python-version: python3
requirements: requirements.txt
# override-build: |
# mkdir -p $SNAPCRAFT_PART_INSTALL/bin
# cp bin/test $SNAPCRAFT_PART_INSTALL/bin/
# cp bin/command.sh $SNAPCRAFT_PART_INSTALL/bin/
static:
plugin: dump
source: ./
filesets:
statics: [./src/static]
templates: [./src/templates]
prime:
- $templates
- $statics

apps:
web-dm:
command: test.py
daemon: simple
restart-condition: always

Directory Str::

This may or may not help, but someone not long ago had a similar problem.

1 Like