-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(linux): Install libappindicator1 and libnotify as a dependency o…
…f the linux package
- Loading branch information
Showing
7 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -28,6 +28,8 @@ interface AssertPackOptions { | |
readonly packed?: (projectDir: string) => Promise<any> | ||
readonly expectedContents?: Array<string> | ||
readonly expectedArtifacts?: Array<string> | ||
|
||
readonly expectedDepends?: string | ||
} | ||
|
||
export async function assertPack(fixtureName: string, packagerOptions: PackagerOptions, checkOptions?: AssertPackOptions): Promise<void> { | ||
|
@@ -104,15 +106,15 @@ async function packAndCheck(projectDir: string, packagerOptions: PackagerOptions | |
await checkOsXResult(packager, packagerOptions, checkOptions, artifacts.get(Platform.OSX)) | ||
} | ||
else if (platform === Platform.LINUX) { | ||
await checkLinuxResult(projectDir, packager, packagerOptions) | ||
await checkLinuxResult(projectDir, packager, packagerOptions, checkOptions) | ||
} | ||
else if (platform === Platform.WINDOWS) { | ||
await checkWindowsResult(packager, packagerOptions, checkOptions, artifacts.get(Platform.WINDOWS)) | ||
} | ||
} | ||
} | ||
|
||
async function checkLinuxResult(projectDir: string, packager: Packager, packagerOptions: PackagerOptions) { | ||
async function checkLinuxResult(projectDir: string, packager: Packager, packagerOptions: PackagerOptions, checkOptions: AssertPackOptions) { | ||
const productName = getProductName(packager.metadata, packager.devMetadata) | ||
const expectedContents = expectedLinuxContents.map(it => { | ||
if (it === "/opt/TestApp/TestApp") { | ||
|
@@ -142,6 +144,7 @@ async function checkLinuxResult(projectDir: string, packager: Packager, packager | |
Vendor: "Foo Bar <[email protected]>", | ||
Package: "testapp", | ||
Description: " \n Test Application (test quite \" #378)", | ||
Depends: checkOptions == null || checkOptions.expectedDepends == null ? "libappindicator1, libnotify" : checkOptions.expectedDepends, | ||
}) | ||
} | ||
|
||
|
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