Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kaoh authored Dec 18, 2023
1 parent dc8daf5 commit 22f0d3e
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,22 @@ __NOTE:__ This will remove the version, in case other package are requiring it t

# Developer Information

## Tag GlobalPlatform
## Tag GlobalPlatform

The formulae is referencing a tag version.

Go to the globalplatform sources and tag it:

~~~shell
git tag 2.0.0-b1
git push origin 2.0.0-b1
git tag 2.4.0
git push origin 2.4.0
~~~

It might be necessary to delete and recreate this tag during the release of a new beta version in a beta formulae:

~~~shell
git tag -d 2.0.0-b1
git push --delete origin 2.0.0-b1
git tag -d 2.4.0
git push --delete origin 2.4.0
~~~

## Update Code and Tag Homebrew Globalplatform
Expand All @@ -123,21 +125,21 @@ brew tap kaoh/globalplatform

~~~shell
# MacOS:
# cd /usr/local/Homebrew/Library/Taps/kaoh/homebrew-globalplatform
cd /usr/local/Homebrew/Library/Taps/kaoh/homebrew-globalplatform
# Linux:
#cd /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/kaoh/homebrew-globalplatform/
cd /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/kaoh/homebrew-globalplatform/
# make your necessary fixes
# update the tag to the required version in the url
brew audit --strict --online globalplatform
~~~

### Push Changes

Since Homebrew has used a HTTPS URL for the checkout it will be required to use `git` instead to commit any changes:
Since Homebrew might have used a HTTPs URL or a different git user for the checkout it will be required to use the `git` protocol instead to commit any changes:

~~~shell
git remote remove origin
git remote add [email protected]:kaoh/homebrew-globalplatform
git remote add origin [email protected]:kaoh/homebrew-globalplatform
git commit -a -m ...
git push origin master
~~~
Expand All @@ -156,8 +158,8 @@ A Docker instance can be used for running the bottling command.

~~~shell
docker rm brew
docker pull homebrew/ubuntu16.04
docker run -it --name=brew homebrew/ubuntu16.04
docker pull homebrew/ubuntu18.04
docker run -it --name=brew homebrew/ubuntu18.04
mkdir build
cd build
~~~
Expand All @@ -176,7 +178,7 @@ The `test-bot` is used for creating the bottle inside the started environment.
# Deletes the tap to have a clean state
brew remove globalplatform
brew untap kaoh/globalplatform
brew test-bot --root-url=https://github.com/kaoh/homebrew-globalplatform/releases/download/2.2.1 --tap=kaoh/globalplatform kaoh/globalplatform/globalplatform
brew test-bot --root-url=https://github.com/kaoh/homebrew-globalplatform/releases/download/2.4.0 --tap=kaoh/globalplatform kaoh/globalplatform/globalplatform
~~~

Adjust the release tag at the end of the `root-url` option.
Expand Down Expand Up @@ -228,8 +230,8 @@ Push the updated formula and tag the master or working branch:
~~~shell
git commit -a -m ...
git push origin master
git tag 2.2.1
git push origin 2.2.1
git tag 2.4.0
git push origin 2.4.0
~~~

Create now a new release in GitHub for the tag.
Expand Down

0 comments on commit 22f0d3e

Please sign in to comment.