-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
4 changed files
with
100 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# README | ||
|
||
## Publishing | ||
|
||
- find the directlink to new archive in releases | ||
https://github.com/hetalang/heta-compiler/releases/download/v0.9.2/heta-compiler-macos.tar.gz | ||
|
||
- calculate checksum | ||
```sh | ||
shasum -a 256 heta-compiler-macos.tar.gz | ||
``` | ||
- update url and sha256 in Formula/heta-compiler.rb | ||
|
||
- testing | ||
```sh | ||
brew install --build-from-source Formula/heta-compiler.rb | ||
``` | ||
|
||
## Installation | ||
|
||
```sh | ||
brew tap hetalang/heta-compiler | ||
brew install heta-compiler | ||
``` | ||
|
||
## Update | ||
|
||
```sh | ||
brew update | ||
brew upgrade heta-compiler | ||
``` | ||
|
||
## Uninstall | ||
|
||
```sh | ||
brew uninstall heta-compiler | ||
``` |
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,25 @@ | ||
class HetaCompiler < Formula | ||
desc "CLI for Heta Compiler" | ||
homepage "https://hetalang.github.io/#/heta-compiler/" | ||
url "https://github.com/hetalang/heta-compiler/releases/download/v0.9.2/heta-compiler-macos.tar.gz" | ||
sha256 "a5ecd974c941d71c20ba71e37dc5e048ac42bb2a2e36147bc363bea315d25293" | ||
license "Apache-2.0" | ||
|
||
def install | ||
bin.install "heta" | ||
end | ||
|
||
def caveats | ||
if Hardware::CPU.arm? | ||
<<~EOS | ||
This formula installs an x64 binary. If you are using an Apple Silicon Mac (M1/M2), | ||
make sure Rosetta 2 is installed to run this software. You can install Rosetta 2 with: | ||
softwareupdate --install-rosetta --agree-to-license | ||
EOS | ||
end | ||
end | ||
|
||
test do | ||
system "#{bin}/heta", "-v" | ||
end | ||
end |
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
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