Created
April 13, 2019 20:42
-
-
Save SirJson/9b39dc5889ab3565f41b69107d76002b to your computer and use it in GitHub Desktop.
Boostnote-0.11.15 Build patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/browser/components/MarkdownPreview.js b/browser/components/MarkdownPreview.js | |
index 63d825f43..a1f2e62ee 100755 | |
--- a/browser/components/MarkdownPreview.js | |
+++ b/browser/components/MarkdownPreview.js | |
@@ -8,7 +8,7 @@ import consts from 'browser/lib/consts' | |
import Raphael from 'raphael' | |
import flowchart from 'flowchart' | |
import mermaidRender from './render/MermaidRender' | |
-import SequenceDiagram from 'js-sequence-diagrams' | |
+import SequenceDiagram from '@rokt33r/js-sequence-diagrams' | |
import Chart from 'chart.js' | |
import eventEmitter from 'browser/main/lib/eventEmitter' | |
import htmlTextHelper from 'browser/lib/htmlTextHelper' | |
diff --git a/lib/main.html b/lib/main.html | |
index a1ea36102..3263c84c5 100644 | |
--- a/lib/main.html | |
+++ b/lib/main.html | |
@@ -131,7 +131,7 @@ | |
window._ = require('lodash') | |
</script> | |
- <script src="../node_modules/js-sequence-diagrams/fucknpm/sequence-diagram-min.js"></script> | |
+ <script src="../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js"></script> | |
<script src="../node_modules/react/dist/react.min.js"></script> | |
<script src="../node_modules/react-dom/dist/react-dom.min.js"></script> | |
<script src="../node_modules/redux/dist/redux.min.js"></script> | |
diff --git a/package.json b/package.json | |
index a845c4381..1a44f2965 100644 | |
--- a/package.json | |
+++ b/package.json | |
@@ -50,6 +50,7 @@ | |
"homepage": "https://boostnote.io", | |
"dependencies": { | |
"@enyaxu/markdown-it-anchor": "^5.0.2", | |
+ "@rokt33r/js-sequence-diagrams": "^2.0.6-2", | |
"@rokt33r/markdown-it-math": "^4.0.1", | |
"@rokt33r/season": "^5.3.0", | |
"@susisu/mte-kernel": "^2.0.0", | |
@@ -72,7 +73,6 @@ | |
"iconv-lite": "^0.4.19", | |
"immutable": "^3.8.1", | |
"invert-color": "^2.0.0", | |
- "js-sequence-diagrams": "^1000000.0.6", | |
"js-yaml": "^3.12.0", | |
"katex": "^0.9.0", | |
"lodash": "^4.11.1", | |
diff --git a/yarn.lock b/yarn.lock | |
index c6fce7496..b5a9a6995 100644 | |
--- a/yarn.lock | |
+++ b/yarn.lock | |
@@ -71,6 +71,14 @@ | |
pretty-ms "^0.2.1" | |
text-table "^0.2.0" | |
+"@rokt33r/js-sequence-diagrams@^2.0.6-2": | |
+ version "2.0.6-2" | |
+ resolved "https://registry.yarnpkg.com/@rokt33r/js-sequence-diagrams/-/js-sequence-diagrams-2.0.6-2.tgz#fe9c4ad8f70c356873739485d1eff5cf75008821" | |
+ integrity sha512-33oibMKJEqCyA83TBeRkc9ifBvoIi2pn/davZuW0PZNbgK7zBkZUdFz1yMPPksA0Rbrxapc9BOwU7xXIACmxhg== | |
+ dependencies: | |
+ raphael "~2.1.x" | |
+ underscore "~1.4.x" | |
+ | |
"@rokt33r/markdown-it-math@^4.0.1": | |
version "4.0.2" | |
resolved "https://registry.yarnpkg.com/@rokt33r/markdown-it-math/-/markdown-it-math-4.0.2.tgz#87c7172f459833b05e406cfc846e0c0b7ebc24ef" | |
@@ -5381,13 +5389,6 @@ js-queue@>=2.0.0: | |
dependencies: | |
easy-stack "^1.0.0" | |
-js-sequence-diagrams@^1000000.0.6: | |
- version "1000000.0.6" | |
- resolved "https://registry.yarnpkg.com/js-sequence-diagrams/-/js-sequence-diagrams-1000000.0.6.tgz#e95db01420479c5ccbc12046af1da42fde649e5c" | |
- dependencies: | |
- raphael "~2.1.x" | |
- underscore "~1.4.x" | |
- | |
js-string-escape@^1.0.1: | |
version "1.0.1" | |
resolved "https://registry.yarnpkg.com/js-string-escape/-/js-string-escape-1.0.1.tgz#e2625badbc0d67c7533e9edc1068c587ae4137ef" | |
@@ -7459,6 +7460,7 @@ raphael@2.2.7, raphael@^2.2.7: | |
raphael@~2.1.x: | |
version "2.1.4" | |
resolved "https://registry.yarnpkg.com/raphael/-/raphael-2.1.4.tgz#b09ca664ad048b814bb2ff5d4d1e75838cab9c97" | |
+ integrity sha1-sJymZK0Ei4FLsv9dTR51g4yrnJc= | |
dependencies: | |
eve "git://github.com/adobe-webplatform/eve.git#eef80ed" | |
@@ -9114,6 +9116,7 @@ underscore.string@~2.4.0: | |
underscore@~1.4.x: | |
version "1.4.4" | |
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.4.4.tgz#61a6a32010622afa07963bf325203cf12239d604" | |
+ integrity sha1-YaajIBBiKvoHljvzJSA88SI51gQ= | |
underscore@~1.6.0: | |
version "1.6.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Jannick Hemelhof <mister {dot} jannick {at} gmail {dot} com> | |
# Contributor: Nicola Squartini <tensor5 {at} gmail {dot} com> | |
# Contributor: NicoHood <aur {at} nicohood {dot} de> | |
# Contributor: Dick Choi <fluke8259 {at} gmail {dot} com> | |
# Contributor: Romain Bazile <gromain {dot} baz {at} gmail {dot} com> | |
pkgname=boostnote | |
_pkgname=Boostnote | |
pkgver=0.11.15 | |
pkgrel=1 | |
pkgdesc="Open source note-taking app for programmers" | |
arch=('any') | |
url="https://boostnote.io/" | |
license=('GPL3') | |
depends=('electron' 'nodejs') | |
makedepends=('npm' 'grunt-cli' 'git') | |
source=( | |
"${pkgname}-${pkgver}.tar.gz::https://github.com/BoostIO/"${_pkgname}"/archive/v"${pkgver}".tar.gz" | |
"${pkgname}.js" | |
"${pkgname}.desktop" | |
"warning-fix.patch" | |
"remove-analytics.patch" | |
"js-seq-fix.patch" | |
) | |
sha512sums=('531e58d0e8620d745dab1245b036cf39a88e8951d2b1d11dabb4ce6c52cce97c2a961bbc25516cbb2b5b543d359bff66aa2f4f5f6894eb39392630ee1699d69e' | |
'1f0ccd2a3632a12c4714d97b9f909ddc94b53d6f86a9e4bdcab31abd55a93071a2c35c6e1e9527b747de6dd74b8a5276414980c11e174085f28b8f2d2721230a' | |
'18bcda13580da8ceeaa86793a77ec00a053b8fd51451dad7e2b1a19553fe1a467ac647b44b789212e783f3f6a80968cc9404e884ef7ff6b1f6588473b3229d40' | |
'a52e5631867e2c5f18465dee6a3201b9b5c546bda373205c4891c9f7b6114599e0854e2b49defb55ee7bea0778a7fde9c9d9f7271dceeeece743a2d72e2fd0c6' | |
'65280bb7e30e07746a63b93be0e32299424683ade760d52031765099048761c863bd2905fbe98a808d85b991777734c6645e887d51493db063984ff236c4fae8' | |
'1c6569fe3c7a98627598899a1b42adf925e9922b3c1a3892d367e67954839c8803020b4d726dd8ef6849fb2b67a8c64eeb465e369dec3293d6aa80a9dbf7863e') | |
prepare() { | |
cd "${_pkgname}-${pkgver}" | |
patch -Np1 -i "${srcdir}/warning-fix.patch" | |
patch -Np1 -i "${srcdir}/remove-analytics.patch" | |
patch -Np1 -i "${srcdir}/js-seq-fix.patch" | |
} | |
build() { | |
cd "${_pkgname}-${pkgver}" | |
npm install --no-optional --no-shrinkwrap | |
grunt compile | |
rm -r node_modules/ | |
npm install --production --no-optional --no-shrinkwrap | |
} | |
package() { | |
cd "${_pkgname}-${pkgver}" | |
appdir="/usr/lib/${pkgname}" | |
install -dm755 "${pkgdir}""${appdir}" | |
cp -a * "${pkgdir}""${appdir}" | |
install -Dm755 "${srcdir}/${pkgname}.js" "$pkgdir/usr/bin/${pkgname}" | |
install -Dm644 resources/app.png "$pkgdir/usr/share/pixmaps/${pkgname}.png" | |
install -Dm644 "${srcdir}/${pkgname}.desktop" "$pkgdir/usr/share/applications/${pkgname}.desktop" | |
# Remove stuff we do not need | |
find "${pkgdir}"/usr/lib/"${pkgname}"/node_modules \ | |
-name "*.a" -exec rm '{}' \; \ | |
-or -name "*.bat" -exec rm '{}' \; \ | |
-or -name "*.node" -exec chmod a-x '{}' \; \ | |
-or -name "benchmark" -prune -exec rm -r '{}' \; \ | |
-or -name "doc" -prune -exec rm -r '{}' \; \ | |
-or -name "html" -prune -exec rm -r '{}' \; \ | |
-or -name "man" -prune -exec rm -r '{}' \; \ | |
-or -path "*/less/gradle" -prune -exec rm -r '{}' \; \ | |
-or -path "*/task-lists/src" -prune -exec rm -r '{}' \; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment