I have been trying to snap up atom myself, just for the heck of learning snapcraft
I successfully snapped it via launchpad
for amd64
architectures.
Considering atom is an electron app, I then went about looking for electron-launcher that comes with the store version of atom
When you download the snap from the store, the directory structure is
------/
bin
desktop-launch
electron-launch
When I look at the snapcraft.yaml
file , it has a part
called electron-launcher and it basically does nothing, but organize
a file.
electron-launch:
plugin: dump
source: .
organize:
electron-launch: bin/electron-launch
The source for atom, is from
https://github.com/atom/atom/releases/download/v1.19.2/atom-amd64.deb
and that .deb
file, does not include an electron-launch file anywhere.
Then, the part stages
desktop-gtk2
after:
- desktop-gtk2
stage-packages:
- gconf2
- libasound2
- libnotify4
- libnspr4
- libnss3
- libpulse0
- libxss1
- libxtst6
I looked at the part structure, and even here, there is no electron-launch file anywhere.
If I download the yaml
file, and use snapcraft
to build the snap,
it complains
Pulling atom
Downloading ‘atom-amd64.deb’[====================================================================================================================] 100%
Preparing to pull electron-launch
Pulling electron-launch
Preparing to build atom
Building atom
Preparing to build electron-launch
Building electron-launch
Staging atom
Staging electron-launch
Priming desktop-gtk2
Priming atom
Priming electron-launch
[Errno 2] No such file or directory: '/home/sherlock/Documents/Snapstore/atom/prime/bin/electron-launch’
But it seems to be available when I download instead from store? how and
Where is this file coming from?