-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9a3339
commit 7a0925c
Showing
3 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,11 +19,11 @@ git clone ssh://[email protected]/cairo-lang.git | |
cd cairo-lang/ | ||
./update-version.sh | ||
``` | ||
> This script gets the latest cairo version from [here](https://github.com/starkware-libs/cairo/) and overwrites the `PKGBUILD` and `.SRCINFO` files. | ||
> This script gets the latest cairo-lang version from [here](https://github.com/starkware-libs/cairo/) and overwrites the `PKGBUILD` and `.SRCINFO` files. | ||
* Push the new changes to the remote. | ||
```bash | ||
git push | ||
``` | ||
> We need to push our changes to the AUR origin, to update our repo where users will install the package. | ||
Done! Now the AUR repo should have the latest `cairo` version! | ||
Done! Now the AUR repo should have the latest `cairo-lang` version! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
![image](https://github.com/lambdaclass/homebrew-cairo-lang/assets/53660242/04463074-fe48-460e-ae39-df14a56a59c2) | ||
# Building packages for Brew | ||
|
||
Homebrew is a package manager for MacOS, we can define a custom `formula` for creating our own packages. | ||
|
||
### How do I install it? | ||
You can use either the `installer.sh` script, which automates the process, or you can `tap` our repository and do it manually. | ||
``` | ||
brew tap lambdaclass/homebrew-cairo-lang | ||
``` | ||
Install the desired package | ||
|
||
*(Make sure to add the **@** symbol to specify the version!)* | ||
``` | ||
brew install lambdaclass/homebrew-cairo-lang/[email protected] | ||
``` | ||
|
||
### How do I upgrade the formulae repository? <sup><sub>maintainers only!</sub></sup> | ||
* We need to clone the [cairo-lang](https://github.com/lambdaclass/homebrew-cairo-lang) repository. | ||
```bash | ||
git clone [email protected]:lambdaclass/homebrew-cairo-lang.git | ||
``` | ||
> This is where the all the formulas are stored. `brew` pulls from here. | ||
* Execute the update script `update-formulae.sh`. This should overwrite the current files within the repo. | ||
```bash | ||
cd homebrew-cairo-lang/ | ||
./update-formulae.sh | ||
``` | ||
> This script gets the latest cairo-lang version from [here](https://github.com/starkware-libs/cairo/) and overwrites the formulae. If a new version is released, it will appear once the script is executed. | ||
* Push the new changes to the repository. | ||
```bash | ||
git push | ||
``` | ||
> We need to push our changes to the repo, so, if any new version is released, it will now be supported. | ||
Done! Now the `brew` repo should have the latest `cairo-lang` version! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters