[arch-commits] Commit in atom/trunk (PKGBUILD node-env-production.patch)
Nicola Squartini
tensor5 at archlinux.org
Thu Apr 18 02:07:04 UTC 2019
Date: Thursday, April 18, 2019 @ 02:07:03
Author: tensor5
Revision: 451965
upgpkg: atom 1.36.0-2
Set NODE_ENV = 'production' in render process.
Added:
atom/trunk/node-env-production.patch
Modified:
atom/trunk/PKGBUILD
---------------------------+
PKGBUILD | 5 ++++-
node-env-production.patch | 13 +++++++++++++
2 files changed, 17 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-04-18 01:56:20 UTC (rev 451964)
+++ PKGBUILD 2019-04-18 02:07:03 UTC (rev 451965)
@@ -2,7 +2,7 @@
pkgname=atom
pkgver=1.36.0
-pkgrel=1
+pkgrel=2
pkgdesc='A hackable text editor for the 21st Century'
arch=('x86_64')
url='https://github.com/atom/atom'
@@ -21,6 +21,7 @@
'fix-atom-sh.patch'
'fix-license-path.patch'
'fix-restart.patch'
+ 'node-env-production.patch'
'no-unsafe-eval.patch'
'symbols-view-use-system-ctags.patch'
'use-system-apm.patch'
@@ -33,6 +34,7 @@
'3ce4f665a1e3484bb408a665500a8f99d8afb5e3cd9d70374c5f9f4a37176e42'
'82a0a17d93f00c92bba21094690e075f2b146b424b52209872dd993ce38ca97e'
'ad63f6428eb8c6afd477ae8f99f85ad25d822d4154c9275272c9ca19c8540953'
+ '9073d3947f11e21788f0931021e4f41d01e3651cc99f2b3320626f478e26c491'
'4033929dde0b81bb6f174cc4c79050474afaf85b54b928bfe13e05059448ebb1'
'3c68e6b3751313e1d386e721f8f819fb051351fb2cf8e753b1d773a0f475fef8'
'53f43c9328a66e24b3467a0a06d9dfde83475f7e54251bf7a523beafaa043806'
@@ -47,6 +49,7 @@
patch -Np1 -i "${srcdir}"/use-system-apm.patch
patch -Np1 -i "${srcdir}"/fix-license-path.patch
patch -Np1 -i "${srcdir}"/fix-restart.patch
+ patch -Np1 -i "${srcdir}"/node-env-production.patch
patch -Np1 -i "${srcdir}"/no-unsafe-eval.patch
# Fix for Electron 3
Added: node-env-production.patch
===================================================================
--- node-env-production.patch (rev 0)
+++ node-env-production.patch 2019-04-18 02:07:03 UTC (rev 451965)
@@ -0,0 +1,13 @@
+--- a/static/index.js
++++ b/static/index.js
+@@ -53,6 +55,10 @@
+ snapshotResult.setGlobals(global, process, window, document, console, require)
+ }
+
++ if (!devMode) {
++ process.env.NODE_ENV = 'production'
++ }
++
+ const FileSystemBlobStore = useSnapshot ? snapshotResult.customRequire('../src/file-system-blob-store.js') : require('../src/file-system-blob-store')
+ blobStore = FileSystemBlobStore.load(path.join(process.env.ATOM_HOME, 'blob-store'))
+
More information about the arch-commits
mailing list