R
R
Roman Chugunov2019-01-20 10:14:37
ubuntu
Roman Chugunov, 2019-01-20 10:14:37

How to build Electron app deb package for Launchpad PPA?

Good day to everyone!))
In short, I'm making an application on Electrone, collecting it for different distros via electron-builder, deb, rpm, pacman, appimage, snap. But electron-builder doesn't know how to build deb for PPA. And so I decided to do it myself ... PPC ...
In general, I created a turnip, a gpg key, signed everything, danced everything as it should be with a tambourine.
And now I'm stuck on the fact that if I build the package as source, then launchpad accepts all the files, it builds the package itself, but it turns out to be empty. If I say that this package is not source, but binary, then launchpad sends me a message like this:

Rejected:

Upload rejected because it contains binary packages.
Ensure you are using `debuild -S`, or an equivalent
command, to generate only the source package before
re-uploading.

I build everything with the command dpkg-buildpackage -rfakeroot --force-sign
In the directory above, in addition to the rest of the files, the deb package itself appears, but it weighs little, because. there are no application binaries.
$ dpkg -c figma-linux_0.3.0-1ubuntu6_all.deb

drwxr-xr-x root/root         0 2019-01-20 09:54 ./
drwxr-xr-x root/root         0 2019-01-20 09:54 ./usr/
drwxr-xr-x root/root         0 2019-01-20 09:54 ./usr/share/
drwxr-xr-x root/root         0 2019-01-20 09:54 ./usr/share/doc/
drwxr-xr-x root/root         0 2019-01-20 09:54 ./usr/share/doc/figma-linux/
-rw-r--r-- root/root       188 2019-01-19 22:51 ./usr/share/doc/figma-linux/README.Debian
-rw-r--r-- root/root       303 2019-01-20 09:54 ./usr/share/doc/figma-linux/changelog.Debian.gz
-rw-r--r-- root/root      1271 2019-01-20 09:50 ./usr/share/doc/figma-linux/copyright

If I'm not mistaken, then launchpad builds packages from sources, not from binaries...
Tell me how to force launchpad to build a package from binary files? If it's possible at all
. Maybe there are some node packages for Electron that make all this easier?
Or maybe there is some other not too complicated and dreary way to create a deb repository with Electron attachments?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Chugunov, 2019-01-28
@Chalovik

In general, I solved this issue and now I can upload the binaries of the Electron application to Launchpad and it will collect them into a deb package. Everything is working. The method is a crutch, but it works. If anyone is interested, write. I'll try to explain this shit in detail.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question