How to package electron app with stagePackages correctly

I tried installing the minimal hello world version again using --dangerous --devmode flags. I do not see the app in /snap/bin but I can now see it in /snap/my-little-app and can run the binary in /snap/my-little-app/current/hello-world.

Next, I will go with adding items to snapcraft.yaml one by one.

Have more follow up questions in order to do that successfully

  1. Does snap provides access to the app via terminal with the app name e.g. $ my-little-app starting the app? Or is there any specific entry to snapcraft.yaml to enable this (basically adding the app to bin path)
  2. Is there a way to dry run a snap without installing? As far as I have discussed and explored, the answer is No but just in case if there is any hack, that’d be helpful because I’d want to add 100s of items in snapcraft.yaml one by one and test each time so I know which configs cause the issue