-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: compiler error and test updates (#5449)
* 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>
- Loading branch information
Showing
12 changed files
with
268 additions
and
2,095 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
lang: English | ||
lang: en-US | ||
languageName: English | ||
agree: Agree | ||
disagree: Disagree | ||
print: Print | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"lang": "日本語", | ||
"lang": "ja-JP", | ||
"languageName": "日本語", | ||
"agree": "同意する", | ||
"disagree": "同意しない", | ||
"print": "印刷する", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"lang": "한국어", | ||
"lang": "ko-KR", | ||
"languageName": "한국어", | ||
"agree": "한국어", | ||
"disagree": "동의하지 않는다", | ||
"print": "인쇄", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.