-
Notifications
You must be signed in to change notification settings - Fork 617
homebrew #350
Comments
Look at my comment at #175 for a temporal Cask you can use to install 0.0.2. |
@Nnubes256 can you PR that into cask? |
@Nnubes256 thanks! |
That would be a very nice contribution, @Nnubes256. Without fixing the version to 0.0.2, of course. |
The problem here is that Cask only works on releases, not on sources. A workaround here to continue using Cask would be to make nightly/weekly builds, and make Cask skip the SHA256 verification for these. Cask can also account for software that auto-updates itself with the Otherwise, the only way around is to make a Homebrew formulae that compiles directly from source. |
Currently the farthest I got with Homebrew is this: require "language/node"
class BlackScreen < Formula
# * Description shouldn't start with an indefinite article (A)
desc "Terminal emulator for the 21st century."
homepage "https://github.com/shockone/black-screen"
url "https://github.com/shockone/black-screen/archive/v0.0.2.tar.gz"
sha256 "f894a731998eb805563a92ee25db0a613251e62a50d360112ede0f7a8bccd10d"
head "https://github.com/shockone/black-screen.git"
depends_on "node" => :build
def install
system "npm", "install", *Language::Node.local_npm_install_args
system "npm", "run", "package"
end
test do
system "npm", "test"
end
end Which fails on
|
@kevinastone Maybe when 0.0.3 releases, or when we start getting nightly/weekly builds, whatever happens first. I agree with @ShockOne in that 0.0.2 is simply not ready for Caskroom distribution. |
Just found out that the error I'm experiencing was fixed by 0bb5629, which is not on stable, so... First working Formula: require "language/node"
class BlackScreen < Formula
# * Description shouldn't start with an indefinite article (A)
desc "Terminal emulator for the 21st century."
homepage "https://github.com/shockone/black-screen"
# Building fails on 0.0.2 because gulp fails executing tsc.
# Fixed on commit 0bb5629, but not on stable yet, so disabling stable until then.
#url "https://github.com/shockone/black-screen/archive/v0.0.2.tar.gz"
#sha256 "f894a731998eb805563a92ee25db0a613251e62a50d360112ede0f7a8bccd10d"
head "https://github.com/shockone/black-screen.git"
depends_on "node" => :build
depends_on :python => :build # Native modules
def install
system "npm", "install", *Language::Node.local_npm_install_args
# HACK better have Homebrew track the app bundles instead of simply copying them to /Applications
system "npm", "run", "compile"
system "node_modules/.bin/electron-packager",
".",
"Black Screen",
"--overwrite",
"--platform=darwin",
"--arch=x64",
"--version=1.1.1", # HACK also is this
"--icon=./icon.icns",
"--asar=true"
prefix.install "Black Screen-darwin-x64/Black Screen.app"
end
test do
system "npm", "test"
end
end To install: To uninstall: |
Opened a PR into Homebrew Homebrew/homebrew-cask#21531 |
|
Hi all.
I'm very curious to try black-screen. It's awesome to see that somebody took the initiative to make something as interesting as this 👍
I was wondering if installing with brew cask will be implemented?
And also: what's the best way of knowing there's a new release?
Thanks!
The text was updated successfully, but these errors were encountered: