From 60d729ffc86ed831859784668171ad763078b574 Mon Sep 17 00:00:00 2001 From: Can Tunca Date: Fri, 15 Nov 2024 11:09:55 +0300 Subject: [PATCH] Update README for info on creating bottles --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 5bd8fe9..1f5a10c 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,14 @@ For example: brew install maplibre-gl-native brew install maplibre-map-renderer ``` + +# How to build bottles + +``` +brew install --build-bottle --verbose pointrlabs/vendor/formula-name +brew bottle pointrlabs/vendor/formula-name +``` + +This will output the bottle stub that should be inserted into the formula. It will also produce the tar.gz archive, which you should upload into Releases section of the target repo. A couple more things to be careful about: +- Before uploading, you may need to rename the archive to be like `maplibre-map-renderer-1.1.arm64_sequoia.bottle.tar.gz` (there are sometimes extra dashes, or unnecessary revision numbers, which should be removed). +- You will need to update `root_url` to match the repo you are uploading the bottle to. This root url will contain the git tag as its last part with `%2F` as slashes (if your tag contains slashes). An example: `https://github.com/pointrlabs/maplibre-gl-native/releases/download/version%2Fmap-renderer%2F1.1`