-
Notifications
You must be signed in to change notification settings - Fork 24
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #40 +/- ##
=======================================
Coverage 67.26% 67.26%
=======================================
Files 31 31
Lines 1848 1848
=======================================
Hits 1243 1243
Misses 499 499
Partials 106 106
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack. Added as argument.
macos-pkg-builder/build-macos.sh
Outdated
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack. Removed it here.
81452e3
to
07b6203
Compare
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]>
07b6203
to
2013b8f
Compare
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
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.