Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.deb package section #641

Closed
cGuille opened this issue Aug 4, 2016 · 5 comments
Closed

.deb package section #641

cGuille opened this issue Aug 4, 2016 · 5 comments

Comments

@cGuille
Copy link

cGuille commented Aug 4, 2016

Hello,

I am trying to specify the section field of the Debian package control file.
Currently, my package's control file contains the following line:

Section: default

I would like to change this default value, but it looks like it is not currently supported.
I expected this to be documented in the Linux build options.

It seems to be supported by fpm that is used to build .deb files. We would need to use the category command argument; we would probably set its value around here.

  • Could you confirm that it is not currently supported?
  • Would you consider a PR about this?

Thank you!

@develar
Copy link
Member

develar commented Aug 4, 2016

Workaround (not tested): Add to build.linux (development package.json) new field:

"fpm": ["--category", "yourCategory"]

Yes, fpm is not documented because it is only for experiments. You can pass any fpm arg using it (on you own risk :)).

Would you consider a PR about this?

app-category-type must be deprecated and renamed to category. category should be specified in the platform-specific options — mac or lunux. Not in the root (build) because values are different per platform (or we can try to map mac values to linux values, it seems it is possible).

@develar develar added the linux label Aug 4, 2016
@develar
Copy link
Member

develar commented Aug 4, 2016

And consider to use AppImage target instead of deb.

@develar develar added the feature label Aug 4, 2016
@cGuille
Copy link
Author

cGuille commented Aug 4, 2016

Thank you! This workaround will certainly help us while we set up a proper category option.

app-category-type must be deprecated and renamed to category.

👍

category should be specified in the platform-specific options — mac or linux. Not in the root (build) because values are different per platform (or we can try to map mac values to linux values, it seems it is possible).

I think considering category as a platform specific option is an easier way to begin with. Mapping mac values to linux (Debian?) values may require an overhead of work because of the maintenance of the category lists and mappings.
I think it's better if it is the app maintainer's work to define which categories to apply to the app on which platform.
Moreover, it seems more flexible to me (from the electron-builder user point of vue).

@develar
Copy link
Member

develar commented Aug 4, 2016

I think considering category as a platform specific option is an easier way to begin with.

👍 but in any case category in the build should be checked and error thrown (error because it s a new property) — just to be sure that configuration is correct.

@develar
Copy link
Member

develar commented Sep 6, 2016

#727 category will be used for Categories in the desktop entry. packageCategory will be added to set deb section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants