I’ve been grinding away at Snapcraft for a few days now but no matter how hard I try I can’t seem to get past this one issue:
I’ve developed an application and am looking to install it on Ubuntu Core 20 which of course, requires applications to be snapped for security reasons. In order to snap the application I’ve added the necessary files to make it a setuptools
compatible package.
Having followed all of the guides and tutorials I can find, I have the following in my snap/snapcraft.yaml:
name: application-name
base: core20
version: '0.1.0'
summary: Single-line elevator pitch for your amazing snap
description: |
This is my-snap's description.
grade: devel
confinement: devmode
parts:
application-name:
plugin: python
source: .
apps:
application-name:
command: application-name
The file structure is:
- ApplicationName/
- Module_x/
- Module_y/
- Module_z/
- snap/
- snapcraft.yaml
- ApplicationName.py
- setup.py
Despite having followed all of the steps I can find here, there, or anywhere, I’m always greeted by:
Skipping pull application-name (already ran)
Skipping build application-name (already ran)
Skipping stage application-name (already ran)
Skipping prime application-name (already ran)
Failed to generate snap metadata: The specified command 'application-name' defined in the app 'application-name' does not exist.
Ensure that 'application-name' is installed with the correct path.
Run the same command again with --debug to shell into the environment if you wish to introspect this failure.
Can anyone point me in the direction of the solution perchance?
Thanks in advance,
Dan