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

Add macos package builder #40

Merged
merged 1 commit into from
Dec 8, 2021

Conversation

VijayanB
Copy link
Member

@VijayanB VijayanB commented Dec 6, 2021

Added script which will generate macos pkg from opensearch-cli
binary. To generate pkg, copy opensearch-cli binary into
application folder. Execute script "build-macos.sh" by following
usuage instructions.
pkg will be generated inside target/pkg directory.

Signed-off-by: Vijayan Balasubramanian [email protected]

Description

[Describe what this change achieves]

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has documentation added
  • Commits are signed as per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@VijayanB VijayanB self-assigned this Dec 6, 2021
@VijayanB VijayanB added the Infrastructure A change to infrastructure, testing, CI/CD, pipelines, etc. label Dec 6, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #40 (81452e3) into main (199b1d1) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #40   +/-   ##
=======================================
  Coverage   67.26%   67.26%           
=======================================
  Files          31       31           
  Lines        1848     1848           
=======================================
  Hits         1243     1243           
  Misses        499      499           
  Partials      106      106           
Flag Coverage Δ
opensearch-cli 67.26% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

vamshin
vamshin previously approved these changes Dec 6, 2021
Copy link
Member

@vamshin vamshin 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


deleteInstallationDirectory() {
log_info "Cleaning $TARGET_DIRECTORY directory."
rm -rf $TARGET_DIRECTORY
Copy link
Member

Choose a reason for hiding this comment

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

Why not make target dir an argument, as is done in previous functions?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ack. Added as argument.

copyBuildDirectory() {
sed -i '' -e 's/__VERSION__/'${VERSION}'/g' ${TARGET_DIRECTORY}/darwin/scripts/postinstall
sed -i '' -e 's/__PRODUCT__/'${PRODUCT}'/g' ${TARGET_DIRECTORY}/darwin/scripts/postinstall
chmod -R 755 ${TARGET_DIRECTORY}/darwin/scripts/postinstall
Copy link
Member

Choose a reason for hiding this comment

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

Dont we already do this in copyDarwinDirectory?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ack. Removed it here.

Added script which will generate macos pkg from opensearch-cli
binary. To generate pkg, copy opensearch-cli binary into
application folder. Execute script "build-macos.sh" by following
usuage instructions.
pkg will be generated inside target/pkg directory.

Signed-off-by: Vijayan Balasubramanian <[email protected]>
@VijayanB VijayanB requested a review from a team as a code owner December 8, 2021 19:37
@VijayanB VijayanB merged commit 7d13f7f into opensearch-project:main Dec 8, 2021
@VijayanB VijayanB deleted the macos-pkg-builder branch December 8, 2021 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.1.0 Infrastructure A change to infrastructure, testing, CI/CD, pipelines, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants