forked from electron-userland/electron-builder
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Squirrel.Windows doesn't escape " in the description
Closes electron-userland#378
- Loading branch information
Showing
12 changed files
with
80 additions
and
83 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
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"private": true, | ||
"name": "TestApp", | ||
"version": "1.1.0", | ||
"description": "Test Application", | ||
"description": "Test Application (test quite \" #378)", | ||
"author": "Foo Bar <[email protected]>", | ||
"license": "MIT", | ||
"homepage": "http://foo.example.com", | ||
|
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 |
---|---|---|
|
@@ -144,7 +144,7 @@ async function checkLinuxResult(projectDir: string, packager: Packager, packager | |
Maintainer: "Foo Bar <[email protected]>", | ||
Vendor: "Foo Bar <[email protected]>", | ||
Package: "testapp", | ||
Description: " \n Test Application", | ||
Description: " \n Test Application (test quite \" #378)", | ||
}) | ||
} | ||
|
||
|
@@ -206,7 +206,7 @@ async function checkWindowsResult(packager: Packager, packagerOptions: PackagerO | |
function getWinExpected(archSuffix: string) { | ||
return [ | ||
`RELEASES${archSuffix}`, | ||
`${productName}Setup-1.1.0${archSuffix}.exe`, | ||
`${productName} Setup 1.1.0${archSuffix}.exe`, | ||
`TestApp-1.1.0${archSuffix}-full.nupkg`, | ||
] | ||
} | ||
|
@@ -225,7 +225,7 @@ async function checkWindowsResult(packager: Packager, packagerOptions: PackagerO | |
if (archSuffix == "") { | ||
const expectedArtifactNames = expected.slice() | ||
expectedArtifactNames[1] = `TestAppSetup-1.1.0${archSuffix}.exe` | ||
assertThat(artifacts.map(it => it.artifactName).filter(it => it != null)).deepEqual([`TestAppSetup-1.1.0${archSuffix}.exe`]) | ||
assertThat(artifacts.map(it => it.artifactName).filter(it => it != null)).deepEqual([`TestApp-Setup-1.1.0${archSuffix}.exe`]) | ||
} | ||
|
||
const packageFile = path.join(path.dirname(artifacts[0].file), `TestApp-1.1.0${archSuffix}-full.nupkg`) | ||
|
@@ -238,7 +238,7 @@ async function checkWindowsResult(packager: Packager, packagerOptions: PackagerO | |
const expectedContents = checkOptions == null || checkOptions.expectedContents == null ? expectedWinContents : checkOptions.expectedContents | ||
assertThat(files).deepEqual(expectedContents.map(it => { | ||
if (it === "lib/net45/TestApp.exe") { | ||
return `lib/net45/${productName.replace(/ /g, "%20")}.exe` | ||
return `lib/net45/${productName}.exe` | ||
} | ||
else { | ||
return it | ||
|
@@ -260,7 +260,7 @@ async function checkWindowsResult(packager: Packager, packagerOptions: PackagerO | |
<owners>Foo Bar</owners> | ||
<iconUrl>https://raw.githubusercontent.com/szwacz/electron-boilerplate/master/resources/windows/icon.ico</iconUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>Test Application</description> | ||
<description>Test Application (test quite \" #378)</description> | ||
<copyright>Copyright © ${new Date().getFullYear()} Foo Bar</copyright> | ||
<projectUrl>http://foo.example.com</projectUrl> | ||
</metadata> | ||
|
Oops, something went wrong.