Trying to package my python app

Hello, I’m trying to package a python file called: main.py but, when I Run it I get this:

Failed to generate snap metadata: The specified command 'main' defined in the app 'gssh' does not exist.

Ensure that ‘main’ is installed with the correct path.

Can someone help me? I’m new to this. This is what my snapcraft file looks like:

name: gssh
summary: a ui for ssh
description: |
    gssh is a tool that let's you connect to ssh servers by using a simple GUI
base: core20
version: 1.0.0
confinement: strict

parts:
  gssh:
    plugin: python
    source: https://github.com/gssh-linux/gssh.git
    source-type: git
    stage-packages:
       - python-gobject-2-dev

apps:
  gssh:
    command: main
1 Like