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

feat(snap): add Snap title option #5350

Merged
merged 1 commit into from Nov 28, 2020

Conversation

sidneys
Copy link
Contributor

@sidneys sidneys commented Oct 18, 2020

Description

This pull request adds the title option for the Snap format.

Implementation

The option defaults to productName.

Background

The title attribute (see Snap format) describes:
"An optional title for the snap, may contain uppercase letters and spaces"

Documentation

A pull request containing the supplemental documentation was created separately:
docs(snap): add documentation for Snap title option (for #5350)

@sidneys sidneys changed the title Snap: Add title option feat(snap): add title option Oct 18, 2020
@sidneys sidneys changed the title feat(snap): add title option feat(snap): add Snap title option Oct 18, 2020
@develar develar merged commit 2801de7 into electron-userland:master Nov 28, 2020
mmaietta pushed a commit to mmaietta/electron-builder that referenced this pull request Dec 2, 2020
mmaietta pushed a commit to mmaietta/electron-builder that referenced this pull request Dec 2, 2020
  - 12:98  error  Don't use `Object` as a type. The `Object` type actually means "any non-nullish value", so it is marginally better than `unknown`.
  - 37:9   error  'label' is never reassigned. Use 'const' instead     prefer-const
Fixing buildResources directory "default" to be a fully defined path as a fallback resource
Updating snapTest snapshots to include new title entry introduced in PR electron-userland#5350
Switching to japanese for dmg-license tests since russian does not have a default label
mmaietta pushed a commit to mmaietta/electron-builder that referenced this pull request Dec 2, 2020
- 12:98 error Don't use `Object` as a type. The `Object` type actually means "any non-nullish value", so it is marginally better than `unknown`.
- 37:9 error 'label' is never reassigned. Use 'const' instead prefer-const
Fixing buildResources directory "default" to be a fully defined path as a fallback resource
Updating snapTest snapshots to include new title entry introduced in PR electron-userland#5350
Switching to japanese for dmg-license tests since russian does not have a default label
develar pushed a commit that referenced this pull request Dec 9, 2020
* Fixed compiler errors with
```
/Users/travis/build/electron-userland/electron-builder/packages/dmg-builder/src/dmgLicense.ts
  12:98  error  Don't use `Object` as a type. The `Object` type actually means "any non-nullish value", so it is marginally better than `unknown`.
- If you want a type meaning "any object", you probably want `Record<string, unknown>` instead.
- If you want a type meaning "any value", you probably want `unknown` instead  @typescript-eslint/ban-types
  37:9   error  'label' is never reassigned. Use 'const' instead     prefer-const
```

* Fixed compiler errors within dmgLicense.ts
- 12:98 error Don't use `Object` as a type. The `Object` type actually means "any non-nullish value", so it is marginally better than `unknown`.
- 37:9 error 'label' is never reassigned. Use 'const' instead prefer-const
Fixing buildResources directory "default" to be a fully defined path as a fallback resource
Updating snapTest snapshots to include new title entry introduced in PR #5350
Switching to japanese for dmg-license tests since russian does not have a default label

* Bug fix: directories.buildResources must be used instead of buildResourcesDir (output dir)
Bug fix: fallbackSources require a path to exist first
Optimized logic using shorthand filters for undefined/null elements.

* Updating license test files to conform to dmg license spec: https://github.com/argv-minus-one/dmg-license/blob/master/docs/License%20Specifications.md#license-specifications
Bug fix: directories.buildResources (input dir) must be used instead of buildResourcesDir (output dir)
Bug fix: fallbackSources require a path to exist, filter first
Optimized logic using shorthand filters for undefined/null elements.

* Test fix: license file paths are dynamic and must be scrubbed for test snapshots

Co-authored-by: Mike Maietta <michaelmaietta@upwork.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants