electron-builder: snap fails to process with "bin/desktop-launch $SNAP/app/my-app does not exist lint-snap-v2_command"
- Version: 20.0.7
- Target:
build --linux --x64
Now that https://github.com/electron-userland/electron-builder/issues/2596 has been resolved I have tried pushing a packaged .snap for our app again.
The snap successfully uploads this time, yet it now fails the validation process with the following:
1 Warning:
unknown fields for app 'my-app': 'adapter' lint-snap-v2_apps_unknown (my-app)
1 Fail:
bin/desktop-launch $SNAP/app/my-app does not exist lint-snap-v2_command (my-app)
and 60 passes…
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 18 (10 by maintainers)
Commits related to this issue
- fix(snap): do not add "adapter: none" for prepacked snap #2614 — committed to develar/electron-builder by develar 6 years ago
- fix(snap): file permissions if umask is not 0 Close #2627, Close #2614 — committed to develar/electron-builder by develar 6 years ago
@kspearrin - please see my last comment for ‘adapter’.
The issue with
bin/desktop-launch $SNAP/app/my-app does not exist lint-snap-v2_command (my-app)is a bug in our review tools, which I’ll fix. If you request a manual review, I’ll approve it (though see below).If you remove
adapter: nonefrom your snapcraft.yaml, this will pass again. What is happening is that withadapter: nonea command wrapper is used in the resulting meta/snap.yaml such that it hascommand: command-tusk.wrapper, which passes review. With the newadapter: noneyaml, snapcraft passes thecommandunmodified from snapcraft.yaml to meta/snap.yaml (iebin/desktop-launch $SNAP/app/my-app) and the review tools aren’t splitting on spaces and so it treats the command asbin/desktop-launch $SNAP/app/my-appwhen it should bebin/desktop-launch.The ‘adapter’ issue is a bug in snapcraft: https://bugs.launchpad.net/snapcraft/+bug/1750658. It looks like @kalikiana started to look at it.
@develar here is outcome I’ve got on ubuntu vm:
electron-builder: 20.0.8 os: ubuntu 17.10
Config looks like the following: