diff --git a/Formula/joplin.rb b/Formula/joplin.rb index 087bc74dc8..f926644688 100644 --- a/Formula/joplin.rb +++ b/Formula/joplin.rb @@ -5,6 +5,7 @@ class Joplin < Formula homepage "https://joplin.cozic.net/" url "https://registry.npmjs.org/joplin/-/joplin-1.0.106.tgz" sha256 "c1f1b19f0d078cd232bce5f62e8ec4f1a69bfcddf1cb90701c7cd7a4ecc59613" + revision 1 bottle do sha256 "e6a2d46d4a252486272556c71f3b39250406556924eeddbea732aa794a27b700" => :high_sierra @@ -16,6 +17,9 @@ class Joplin < Formula depends_on "python@2" => :build def install + # upgrade the sqlite3 dependency to a version with node 10 support + inreplace "package.json", "\"sqlite3\": \"^3.1.8\",", "\"sqlite3\": \"^4.0.0\"," + system "npm", "install", *Language::Node.std_npm_install_args(libexec) bin.install_symlink Dir["#{libexec}/bin/*"] end