Skip to content
Jeongseok Lee edited this page Jan 6, 2018 · 7 revisions

Bottles

Where are the bottles?

The Homebrew bottles for this repo are hosted at https://bintray.com/dartsim/dart.

How can I build a bottle?

# e.g., dartsim6
$ brew install --build-bottle dartsim6
$ brew bottle dartsim6

If the bottle is successfully built, it returns followings:

./dartsim6-6.1.2.sierra.bottle.1.tar.gz
  bottle do
    cellar :any
    rebuild 1
    sha256 "ca6e5126a8f4a247b1b8d4937ed93a2f8719499888b8544f8d00b40f25235699" => :sierra
  end

then you could update the formula accordingly.

See the Homebrew manual for the detail.

How can I upload the bottles?

You first need to signup to Bintray and be a member of the dartsim organization. Please ask @jslee02 to join in.

Once you become the member, you could upload the bottle as

curl -T <FILE.EXT> -u<YOUR_BINTRAY_ID>:<API_KEY> https://api.bintray.com/content/dartsim/dart/<YOUR_COOL_PACKAGE_NAME>/<VERSION_NAME>/<FILE_TARGET_PATH>

# e.g., 
curl -T dartsim6-6.ar.gz -ujslee02:<API_KEY> https://api.bintray.com/content/dartsim/dart/dartsim6/6.1.2/dartsim6-6.1.2.sierra.bottle.1.tar.gz

You can find your <API_KEY> on the profile page of Bintray.

Once the file was uploaded successfully, then you should clink publish button at the Bintary project page (e.g., https://bintray.com/dartsim/dart/dartsim6).