Hey guys,
We are trying to push our application to the snap store for the first time and are running into errors with snapcraft push
.
The app is an electron app that is packaged using electron-builder with snap. We successfully end up with a built myapp_0.0.1_amd64.snap
file from electron-builder.
We have registered our app name with the snap store.
Whenever I try to push the app with snapcraft push myapp_0.0.1_amd64.snap
I get the following:
$ snapcraft push myapp_0.0.4_amd64.snap
Pushing myapp_0.0.4_amd64.snap
Preparing to push '/home/me/app/dist/myapp_0.0.4_amd64.snap' to the store.
Traceback (most recent call last):
File "/snap/snapcraft/1094/bin/snapcraft", line 11, in <module>
load_entry_point('snapcraft==2.39', 'console_scripts', 'snapcraft')()
File "/snap/snapcraft/1094/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 565, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/snap/snapcraft/1094/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2631, in load_entry_point
return ep.load()
File "/snap/snapcraft/1094/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2291, in load
return self.resolve()
File "/snap/snapcraft/1094/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2297, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/snap/snapcraft/1094/lib/python3.6/site-packages/snapcraft/cli/__main__.py", line 43, in <module>
run(prog_name='snapcraft')
File "/snap/snapcraft/1094/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/snap/snapcraft/1094/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/snap/snapcraft/1094/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/snap/snapcraft/1094/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/snap/snapcraft/1094/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/snap/snapcraft/1094/lib/python3.6/site-packages/snapcraft/cli/store.py", line 149, in push
snapcraft.push(snap_file, channel_list)
File "/snap/snapcraft/1094/lib/python3.6/site-packages/snapcraft/_store.py", line 481, in push
arch = snap_yaml['architectures'][0]
KeyError: 'architectures'