script/packages/build in licensed-2.14.4 vs script/packages/build in licensed-2.15.0
- old
+ new
@@ -49,11 +49,14 @@
if [[ "$VERSION" != "$CURRENT_BRANCH" ]]; then
git checkout "$VERSION"
trap "git checkout $CURRENT_BRANCH" EXIT
fi
+ # get the openssl dir to use when building based on ruby's default ssl cert dir
+ OPENSSL_DIR="$(cd "$(ruby -e 'require "net/https"; puts OpenSSL::X509::DEFAULT_CERT_DIR')/.." && pwd)"
+
# build the licensed rubyc executable
- "$RUBYC" --clean-tmpdir -o "$BUILD_DIR/licensed" "$COPY_DIR/exe/licensed"
+ "$RUBYC" --openssl-dir "$OPENSSL_DIR" --clean-tmpdir -o "$BUILD_DIR/licensed" "$COPY_DIR/exe/licensed"
chmod +x $BUILD_DIR/licensed
)
# non-executable content will be stored in a `meta` directory
mkdir -p "$BUILD_DIR/meta"