-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
publish in homebrew #16
Comments
I feel like I got the formula to a decent place and we can start talking about it. Spoiler: I'm new to Rust/Cargo and how the build system works don't yell at me for doing silly things 😬 NameThere is already a cask package called "notion", see here. I'd say we can name ours I personally would go with Homebrew formulaThe formula itself (snippet below) gets generated automatically by running: brew create https://dl.dropboxusercontent.com/s/rawxzfb4fsruu14/notion-cli-0.1.0.tgz Properties and methods like I hacked together a $ tree -L 1 homebrew
homebrew
├── Cargo.lock
├── Cargo.toml
├── build.sh
├── crates
├── install.sh
├── install.sh.in
└── src Once the folder is downloaded, we run Also, I believe we can remove the code from class NotionCli < Formula
desc "The hassle-free node.js manager"
homepage "https://github.com/notion-cli/notion"
url "https://dl.dropboxusercontent.com/s/rawxzfb4fsruu14/notion-cli-0.1.0.tgz"
sha256 "90f96b6c7e33593acb0dfb6917461e9dbc095f4c71bf6ea06a75b06638f4aa18"
depends_on "rust" => :build
def install
system "cargo", "build", "--release"
system "./build.sh",
"./target/release/notion",
"./target/release/node",
"./target/release/launchbin",
"./target/release/launchscript"
system "./install.sh"
end
test do
assert_equal "The hassle-free node.js manager", (system "notion -V")
end
end AuditHomebrew documentation suggest we run Audit showed that we are not notable enough yet: $ brew audit --new-formula notion-cli
notion-cli:
* GitHub repository not notable enough (<20 forks, <20 watchers and <50 stars)
Error: 1 problem in 1 formula I'm not sure what to do about the above yet, let's discuss. |
Has anyone circled back to this? It'd be cool to get this in now since it appears that the repo is notable enough now. |
@dherman now that this project has been renamed to |
@dherman is there anything the project needs to help make this happen? |
I've created a simple formula that might be a good starting point. It's available here. The formula does not build from source but uses the tar. I wanted to make sure the installation was as close to using Update: I've opened a pull-request to homebrew/homebrew-core |
While working on the formula for Homebrew I've encountered an issue and I'm not sure if I should file this as a separate bug, but the installation script from
Running I think this has something to do with Homebrew's superenv so I'm not sure if it's worthing pursuing this. |
Anyone who has access to a macOS Catalina can try to help me debug the formula? I'm getting an error when building to Catalina during the CI step for the pull-request and I'm not able to figure out how to deal with it since I don't have access to Catalina… |
It looks like this was completed some time ago thanks to @filipekiss! |
We should publish Mac installers as formulae in homebrew.
The text was updated successfully, but these errors were encountered: