[arch-commits] Commit in react-native-debugger/trunk (6 files)

Nicola Squartini tensor5 at archlinux.org
Sat Sep 14 12:58:52 UTC 2019


    Date: Saturday, September 14, 2019 @ 12:58:51
  Author: tensor5
Revision: 510529

upgpkg: react-native-debugger 0.10.0-1

Modified:
  react-native-debugger/trunk/PKGBUILD
  react-native-debugger/trunk/iconPath.patch
  react-native-debugger/trunk/react-native-debugger.js
Deleted:
  react-native-debugger/trunk/nodeIntegration.patch
  react-native-debugger/trunk/react-native-debugger.sh
  react-native-debugger/trunk/setZoomLevelLimits.patch

--------------------------+
 PKGBUILD                 |   25 ++++++++-----------------
 iconPath.patch           |    6 +++---
 nodeIntegration.patch    |   12 ------------
 react-native-debugger.js |    4 ++--
 react-native-debugger.sh |    7 -------
 setZoomLevelLimits.patch |   11 -----------
 6 files changed, 13 insertions(+), 52 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-14 12:50:14 UTC (rev 510528)
+++ PKGBUILD	2019-09-14 12:58:51 UTC (rev 510529)
@@ -1,8 +1,8 @@
 # Maintainer: Nicola Squartini <tensor5 at gmail.com>
 
 pkgname=react-native-debugger
-pkgver=0.9.13
-_commit=8d40748a9120adf5f04b6e7dae87ca2f2128f621
+pkgver=0.10.0
+_commit=7dbaba93de83b04c6ef6136581ee3a097afa1e88
 pkgrel=1
 pkgdesc='The standalone app for React Native Debugger, with React DevTools / Redux DevTools'
 arch=('any')
@@ -12,25 +12,17 @@
 makedepends=('asar' 'git' 'npm')
 source=("git+https://github.com/jhen0409/react-native-debugger.git#commit=${_commit}"
         'iconPath.patch'
-        'nodeIntegration.patch'
         'react-native-debugger.desktop'
-        'react-native-debugger.js'
-        'react-native-debugger.sh'
-        'setZoomLevelLimits.patch')
+        'react-native-debugger.js')
 sha256sums=('SKIP'
-            '4ac46fdbfe1658ea63f28b56ceda94b06324f8476090a0d0888f99ae43dd27ad'
-            '6022ea467881e17ff7af9dc94455fc13eff860bf59a7ced7abf222a003a22526'
+            '9a6343d3d84a7847e8c6215fa562267f7016b38c2990c15f056236c72e54a2e7'
             'f63e79516db0feb2e76c366402cf266165c0f7eb282dc55703b800b91152867d'
-            '59e0c247d006a437a619917df7e76a506aadb4d751b7d3bb476a96030620a660'
-            '8a217b932b1042c14930d89f56661dbdc13b1afe04680df6b2fefceb242fb05c'
-            '49eceb17c8f2a2e3caa37aeb195ae3888399cf2946954f6f8f7e2d1c4050e3eb')
+            '8cd406c3b2d091f2a2b73e5755682dc925bb1f75d0d425b82507136b350a4ceb')
 
 prepare() {
     cd ${pkgname}
 
     patch -Np1 -i ../iconPath.patch
-    patch -Np1 -i ../nodeIntegration.patch
-    patch -Np1 -i ../setZoomLevelLimits.patch
 }
 
 build() {
@@ -47,12 +39,11 @@
 package() {
     cd ${pkgname}
 
-    install -dm755 "${pkgdir}/usr/lib/${pkgname}"
+    install -dm755 "${pkgdir}/usr/lib"
     rm dist/logo.png  # see iconPath.patch
-    asar pack dist "${pkgdir}/usr/lib/${pkgname}/app.asar"
+    asar pack dist "${pkgdir}/usr/lib/${pkgname}.asar"
 
-    install -Dm755 ../${pkgname}.sh "${pkgdir}/usr/bin/${pkgname}"
-    install -m755 ../${pkgname}.js "${pkgdir}/usr/lib/${pkgname}/${pkgname}"
+    install -Dm755 ../${pkgname}.js "${pkgdir}/usr/bin/${pkgname}"
     install -Dm644 -t "${pkgdir}/usr/share/applications" ../${pkgname}.desktop
     install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE.md
     install -Dm644 electron/logo.png \

Modified: iconPath.patch
===================================================================
--- iconPath.patch	2019-09-14 12:50:14 UTC (rev 510528)
+++ iconPath.patch	2019-09-14 12:58:51 UTC (rev 510529)
@@ -1,9 +1,9 @@
 --- a/electron/main.js
 +++ b/electron/main.js
-@@ -7,7 +7,7 @@
- import { readConfig } from './config';
- import { sendSyncState } from './sync-state';
+@@ -9,7 +9,7 @@
  
+ process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = 1;
+ 
 -const iconPath = path.resolve(__dirname, 'logo.png');
 +const iconPath = '/usr/share/pixmaps/react-native-debugger.png';
  const defaultOptions = { iconPath };

Deleted: nodeIntegration.patch
===================================================================
--- nodeIntegration.patch	2019-09-14 12:50:14 UTC (rev 510528)
+++ nodeIntegration.patch	2019-09-14 12:58:51 UTC (rev 510529)
@@ -1,12 +0,0 @@
---- a/electron/window.js
-+++ b/electron/window.js
-@@ -90,6 +90,9 @@
-     backgroundColor: '#272c37',
-     tabbingIdentifier: 'rndebugger',
-     ...config.windowBounds,
-+    webPreferences: {
-+      nodeIntegration: true,
-+    },
-   });
-   const isFirstWindow = BrowserWindow.getAllWindows().length === 1;
- 

Modified: react-native-debugger.js
===================================================================
--- react-native-debugger.js	2019-09-14 12:50:14 UTC (rev 510528)
+++ react-native-debugger.js	2019-09-14 12:58:51 UTC (rev 510529)
@@ -4,7 +4,7 @@
 
 const {app} = require("electron");
 const fs = require("fs");
-const {join} = require("path");
+const {dirname, join} = require("path");
 
 // Change command name.
 const fd = fs.openSync("/proc/self/comm", fs.constants.O_WRONLY);
@@ -15,7 +15,7 @@
 process.argv.splice(0, 1);
 
 // Set application paths.
-const appPath = join(__dirname, "app.asar");
+const appPath = join(dirname(__dirname), "lib", `${name}.asar`);
 const packageJson = require(join(appPath, "package.json"));
 const productName = packageJson.productName;
 app.setAppPath(appPath);

Deleted: react-native-debugger.sh
===================================================================
--- react-native-debugger.sh	2019-09-14 12:50:14 UTC (rev 510528)
+++ react-native-debugger.sh	2019-09-14 12:58:51 UTC (rev 510529)
@@ -1,7 +0,0 @@
-#!/bin/bash
-
-: ${ELECTRON_DISABLE_SECURITY_WARNINGS=1}
-
-export ELECTRON_DISABLE_SECURITY_WARNINGS
-
-exec /usr/lib/react-native-debugger/react-native-debugger

Deleted: setZoomLevelLimits.patch
===================================================================
--- setZoomLevelLimits.patch	2019-09-14 12:50:14 UTC (rev 510528)
+++ setZoomLevelLimits.patch	2019-09-14 12:58:51 UTC (rev 510529)
@@ -1,11 +0,0 @@
---- a/app/index.js
-+++ b/app/index.js
-@@ -16,7 +16,7 @@
- const currentWindow = remote.getCurrentWindow();
- 
- webFrame.setZoomFactor(1);
--webFrame.setZoomLevelLimits(1, 1);
-+webFrame.setVisualZoomLevelLimits(1, 1);
- if (process.env.E2E_TEST) {
-   webFrame.registerURLSchemeAsPrivileged('file');
- }



More information about the arch-commits mailing list