Create a snap for a program with the `deb` extension

Is it possible to directly create a snap for a program with the deb extension ?

Here is a fictional example :


name:  name_of_the_snap
version: '1.0'
summary: Summary of the program
description: Description of the program
base: core18  

parts:  
      app:
          plugin: dump
          source: the_deb_package

plugs:
      write-access:
          interface: system-files
          write:
            - /tmp 

apps:
      name_of_the_snap:
        command: name_of_the_comman
        plugs:
              - write-access
        environment:        
              SNAP_VAR_WWW: $SNAP_COMMON/tmp

Yup absoulutely possible.

Look these for example

https://github.com/soumyaDghosh/webcord-snap

~ @soumyaDghosh , I do not see a reference towards a deb package in your yaml* file .

Check the line 31 properly

Okay , I see . Thanks @soumyaDghosh .

~ @soumyaDghosh I will test it .