joplin 1.0.125
Closes #39650. Signed-off-by: Chongyu Zhu <i@lembacon.com>
This commit is contained in:
parent
85c34d342e
commit
b04b6a7870
1 changed files with 5 additions and 4 deletions
|
@ -3,9 +3,8 @@ require "language/node"
|
|||
class Joplin < Formula
|
||||
desc "Note taking and to-do application with synchronisation capabilities"
|
||||
homepage "https://joplin.cozic.net/"
|
||||
url "https://registry.npmjs.org/joplin/-/joplin-1.0.124.tgz"
|
||||
sha256 "6da64d5ff859d2e6648ebcdc4e99486461db4eba13d4827f0261ac4d5be8de35"
|
||||
revision 1
|
||||
url "https://registry.npmjs.org/joplin/-/joplin-1.0.125.tgz"
|
||||
sha256 "c41cb46e37549958a941c2e8af7d60ed667479adbbdfc8880e5158631b9c5ebc"
|
||||
|
||||
bottle do
|
||||
sha256 "7a0359eadd073092d70762acfff84f57f31eacea52224375ef027b142623d79a" => :mojave
|
||||
|
@ -17,13 +16,15 @@ class Joplin < Formula
|
|||
depends_on "node"
|
||||
|
||||
def install
|
||||
# node 12 compatibility fixes, can be removed for the next version
|
||||
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\","
|
||||
s.gsub! "\"sqlite3\": \"^4.0.1\",", "\"sqlite3\": \"^4.0.7\","
|
||||
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