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

[JavaToolInstallerV0] Add .dmg and .pkg support for macOS #13203

Conversation

ekaterina-tatanova
Copy link
Contributor

@ekaterina-tatanova ekaterina-tatanova commented Jun 30, 2020

Task name: JavaToolInstallerV0

Description: This PR adds .dmg and .pkg support for macOS.

Refactoring:

  • Changed the logic of function getting a supporting ending of file name
  • Changed the way of checking if the string is undefined
  • Added missing types to variables and functions results
  • Created a task utils module
  • Added JSDoc to functions
  • United two imports from the same module
  • Logic for unpacking the archive was extracted into a separate function

Documentation changes required: (Y)

Added unit tests: (N)

Checklist:

  • Task version was bumped - please check instruction how to do it
  • Checked that applied changes work as expected

@ekaterina-tatanova ekaterina-tatanova force-pushed the users/ekaterina-tatanova/feature1709682_dmg-and-pkg-support-for-macos branch from be9a82b to 9c3bfd6 Compare June 30, 2020 09:18
@ekaterina-tatanova ekaterina-tatanova changed the title Users/ekaterina tatanova/feature1709682 dmg and pkg support for macos [JavaToolInstallerV0] Add .dmg and .pkg support for macOS Jun 30, 2020
Copy link
Contributor

@alexander-smolyakov alexander-smolyakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please take a look at the comments, other changes are LGTM, thanks!

Tasks/JavaToolInstallerV0/javatoolinstaller.ts Outdated Show resolved Hide resolved
Tasks/JavaToolInstallerV0/task.loc.json Outdated Show resolved Hide resolved
Tasks/JavaToolInstallerV0/javatoolinstaller.ts Outdated Show resolved Hide resolved
Tasks/JavaToolInstallerV0/javatoolinstaller.ts Outdated Show resolved Hide resolved
Tasks/JavaToolInstallerV0/taskutils.ts Show resolved Hide resolved
Tasks/JavaToolInstallerV0/taskutils.ts Outdated Show resolved Hide resolved
Tasks/JavaToolInstallerV0/taskutils.ts Outdated Show resolved Hide resolved
Tasks/JavaToolInstallerV0/javatoolinstaller.ts Outdated Show resolved Hide resolved
Tasks/JavaToolInstallerV0/javatoolinstaller.ts Outdated Show resolved Hide resolved
Tasks/JavaToolInstallerV0/javatoolinstaller.ts Outdated Show resolved Hide resolved
@ekaterina-tatanova ekaterina-tatanova force-pushed the users/ekaterina-tatanova/feature1709682_dmg-and-pkg-support-for-macos branch from e10a341 to 7a4c920 Compare July 6, 2020 00:26
@ekaterina-tatanova ekaterina-tatanova force-pushed the users/ekaterina-tatanova/feature1709682_dmg-and-pkg-support-for-macos branch 3 times, most recently from 4a6d4a2 to e2f2bf0 Compare July 6, 2020 15:46
Copy link
Contributor

@anatolybolshakov anatolybolshakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@leantk
Copy link
Contributor

leantk commented Jul 16, 2020

We should also make an issue to add canary tests for these new scenarios

@ekaterina-tatanova ekaterina-tatanova force-pushed the users/ekaterina-tatanova/feature1709682_dmg-and-pkg-support-for-macos branch from 9246469 to c065879 Compare July 17, 2020 09:03
@ekaterina-tatanova ekaterina-tatanova force-pushed the users/ekaterina-tatanova/feature1709682_dmg-and-pkg-support-for-macos branch 2 times, most recently from 8564ac1 to 71c9863 Compare July 29, 2020 18:28
Copy link
Contributor

@alexander-smolyakov alexander-smolyakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please take a look at the comments?
Other changes LGTM.

Tasks/JavaToolInstallerV0/javatoolinstaller.ts Outdated Show resolved Hide resolved
Tasks/JavaToolInstallerV0/taskutils.ts Outdated Show resolved Hide resolved
Tasks/JavaToolInstallerV0/taskutils.ts Outdated Show resolved Hide resolved
Copy link
Member

@egor-bryzgalov egor-bryzgalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ekaterina-tatanova ekaterina-tatanova force-pushed the users/ekaterina-tatanova/feature1709682_dmg-and-pkg-support-for-macos branch from 71c9863 to 96d2554 Compare July 30, 2020 10:53
Copy link
Contributor

@alexander-smolyakov alexander-smolyakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks!

@ekaterina-tatanova ekaterina-tatanova merged commit 431cd6d into master Jul 30, 2020
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.

5 participants