-
-
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: Can't build on OSX (x64) since electron-builder 5.19.0
Closes #635
- Loading branch information
Showing
16 changed files
with
151 additions
and
306 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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
"author": "Foo Bar <[email protected]>", | ||
"license": "MIT", | ||
"build": { | ||
"electronVersion": "1.3.1", | ||
"electronVersion": "1.3.2", | ||
"appId": "org.electron-builder.testApp", | ||
"app-category-type": "your.app.category.type", | ||
"iconUrl": "https://raw.githubusercontent.com/szwacz/electron-boilerplate/master/resources/windows/icon.ico", | ||
|
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import { copy, emptyDir, remove, writeJson, readJson, readFile } from "fs-extra-p" | ||
import * as assertThat2 from "should/as-function" | ||
import { assertThat } from "./fileAssert" | ||
import * as path from "path" | ||
import { parse as parsePlist } from "plist" | ||
|
@@ -172,7 +171,7 @@ async function checkLinuxResult(projectDir: string, packager: Packager, checkOpt | |
assertThat(await getContents(`${projectDir}/${outDirName}/TestApp-${appInfo.version}-i386.deb`)).isEqualTo(expectedContents) | ||
} | ||
|
||
assertThat2(parseDebControl(await exec("dpkg", ["--info", packageFile]))).has.properties({ | ||
assertThat(parseDebControl(await exec("dpkg", ["--info", packageFile]))).hasProperties({ | ||
License: "MIT", | ||
Homepage: "http://foo.example.com", | ||
Maintainer: "Foo Bar <[email protected]>", | ||
|
@@ -206,7 +205,7 @@ async function checkOsXResult(packager: Packager, packagerOptions: PackagerOptio | |
const appInfo = packager.appInfo | ||
const packedAppDir = path.join(path.dirname(artifacts[0].file), `${appInfo.productFilename}.app`) | ||
const info = parsePlist(await readFile(path.join(packedAppDir, "Contents", "Info.plist"), "utf8")) | ||
assertThat2(info).has.properties({ | ||
assertThat(info).hasProperties({ | ||
CFBundleDisplayName: appInfo.productName, | ||
CFBundleIdentifier: "org.electron-builder.testApp", | ||
LSApplicationCategoryType: "your.app.category.type", | ||
|
@@ -215,7 +214,7 @@ async function checkOsXResult(packager: Packager, packagerOptions: PackagerOptio | |
|
||
if (packagerOptions.cscLink != null) { | ||
const result = await exec("codesign", ["--verify", packedAppDir]) | ||
assertThat2(result).not.match(/is not signed at all/) | ||
assertThat(result).doesNotMatch(/is not signed at all/) | ||
} | ||
|
||
const actualFiles = artifacts.map(it => path.basename(it.file)).sort() | ||
|
Oops, something went wrong.