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

Snap.yaml has invalid fields #7104

Closed
MikeJerred opened this issue Aug 31, 2022 · 2 comments · Fixed by #7110
Closed

Snap.yaml has invalid fields #7104

MikeJerred opened this issue Aug 31, 2022 · 2 comments · Fixed by #7110
Labels

Comments

@MikeJerred
Copy link
Contributor

  • Electron-Builder Version: 23.3.3
  • Node Version: 16.14.2
  • Electron Version: 19.0.14
  • Electron Type (current, beta, nightly): current
  • Target: snap

Currently app-builder-lib copies all the fields specified in snapcraft.yaml into meta/snap.yaml, but there are some fields that shouldn't be copied (see https://code.launchpad.net/~logicoversnacks/review-tools/+git/review-tools/+merge/429123). Including any of these invalid fields will cause the snap to fail validation and require manual review.

A list of fields that should be stripped out:

compression
contact
donation
issues
source-code
website

I would make a pull request but I am not sure what app-builder-lib is doing when this.isUseTemplateApp is false, it seems to make snap/snapcraft.yaml instead of meta/snap.yaml

@github-actions github-actions bot added the snap label Aug 31, 2022
@mmaietta
Copy link
Collaborator

mmaietta commented Sep 1, 2022

Hi @MikeJerred , I'm honestly not familiar with the implementation of snap within electron-builder. Would be happy to accept a PR for this change.

MikeJerred added a commit to MikeJerred/electron-builder that referenced this issue Sep 1, 2022
@MikeJerred
Copy link
Contributor Author

I opened a PR: #7110
It looks like when isUseTemplateApp is false then the snap cli tool is used which should create the snap.yaml correctly, so I have only stripped the fields out when isUseTemplateApp == true

MikeJerred added a commit to MikeJerred/electron-builder that referenced this issue Sep 1, 2022
MikeJerred added a commit to MikeJerred/electron-builder that referenced this issue Sep 1, 2022
MikeJerred added a commit to MikeJerred/electron-builder that referenced this issue Sep 1, 2022
MikeJerred added a commit to MikeJerred/electron-builder that referenced this issue Sep 6, 2022
MikeJerred added a commit to MikeJerred/electron-builder that referenced this issue Sep 6, 2022
MikeJerred added a commit to MikeJerred/electron-builder that referenced this issue Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants