joplin: revision for node, compatibility with node 12
Closes #39188. Signed-off-by: Chongyu Zhu <i@lembacon.com> Co-Authored-By: Christian Moritz <chrmoritz@gmail.com>
This commit is contained in:
parent
ce655ae12f
commit
3e4075e2b9
1 changed files with 8 additions and 0 deletions
|
@ -5,6 +5,7 @@ class Joplin < Formula
|
|||
homepage "https://joplin.cozic.net/"
|
||||
url "https://registry.npmjs.org/joplin/-/joplin-1.0.124.tgz"
|
||||
sha256 "6da64d5ff859d2e6648ebcdc4e99486461db4eba13d4827f0261ac4d5be8de35"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
sha256 "3799db4cb2158b10df411b3fda68d8d15da46cabdd83c9b6b06cf7572eb5f1e4" => :mojave
|
||||
|
@ -16,6 +17,13 @@ class Joplin < Formula
|
|||
depends_on "node"
|
||||
|
||||
def install
|
||||
inreplace "package.json" do |s|
|
||||
s.gsub! "\"sharp\": \"^0.20.8\",", "\"sharp\": \"^0.22.1\","
|
||||
s.gsub! "\"sqlite3\": \"^4.0.1\",", "\"sqlite3\": \"github:mapbox/node-sqlite3\#723de4ca\","
|
||||
end
|
||||
inreplace "lib/shim-init-node.js",
|
||||
".resize(Resource.IMAGE_MAX_DIMENSION, Resource.IMAGE_MAX_DIMENSION)\n .max()\n .withoutEnlargement()",
|
||||
".resize(Resource.IMAGE_MAX_DIMENSION, Resource.IMAGE_MAX_DIMENSION, {fit: 'inside', withoutEnlargement: true})"
|
||||
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
||||
bin.install_symlink Dir["#{libexec}/bin/*"]
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue