[arch-commits] Commit in react-native-debugger/repos/community-any (14 files)
Nicola Squartini
tensor5 at archlinux.org
Wed May 1 05:56:52 UTC 2019
Date: Wednesday, May 1, 2019 @ 05:56:51
Author: tensor5
Revision: 457388
archrelease: copy trunk to community-any
Added:
react-native-debugger/repos/community-any/PKGBUILD
(from rev 457387, react-native-debugger/trunk/PKGBUILD)
react-native-debugger/repos/community-any/iconPath.patch
(from rev 457387, react-native-debugger/trunk/iconPath.patch)
react-native-debugger/repos/community-any/nodeIntegration.patch
(from rev 457387, react-native-debugger/trunk/nodeIntegration.patch)
react-native-debugger/repos/community-any/react-native-debugger.desktop
(from rev 457387, react-native-debugger/trunk/react-native-debugger.desktop)
react-native-debugger/repos/community-any/react-native-debugger.js
(from rev 457387, react-native-debugger/trunk/react-native-debugger.js)
react-native-debugger/repos/community-any/react-native-debugger.sh
(from rev 457387, react-native-debugger/trunk/react-native-debugger.sh)
react-native-debugger/repos/community-any/setZoomLevelLimits.patch
(from rev 457387, react-native-debugger/trunk/setZoomLevelLimits.patch)
Deleted:
react-native-debugger/repos/community-any/PKGBUILD
react-native-debugger/repos/community-any/iconPath.patch
react-native-debugger/repos/community-any/nodeIntegration.patch
react-native-debugger/repos/community-any/react-native-debugger.desktop
react-native-debugger/repos/community-any/react-native-debugger.js
react-native-debugger/repos/community-any/react-native-debugger.sh
react-native-debugger/repos/community-any/setZoomLevelLimits.patch
-------------------------------+
PKGBUILD | 120 ++++++++++++++++++++--------------------
iconPath.patch | 22 +++----
nodeIntegration.patch | 24 ++++----
react-native-debugger.desktop | 16 ++---
react-native-debugger.js | 58 +++++++++----------
react-native-debugger.sh | 14 ++--
setZoomLevelLimits.patch | 22 +++----
7 files changed, 138 insertions(+), 138 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-05-01 05:55:42 UTC (rev 457387)
+++ PKGBUILD 2019-05-01 05:56:51 UTC (rev 457388)
@@ -1,60 +0,0 @@
-# Maintainer: Nicola Squartini <tensor5 at gmail.com>
-
-pkgname=react-native-debugger
-pkgver=0.9.7
-_commit=6d05271a1f8c97ff7295a552c25618f49e2dbfbd
-pkgrel=2
-pkgdesc='The standalone app for React Native Debugger, with React DevTools / Redux DevTools'
-arch=('any')
-url='https://github.com/jhen0409/react-native-debugger'
-license=('MIT')
-depends=('electron')
-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')
-sha256sums=('SKIP'
- '4ac46fdbfe1658ea63f28b56ceda94b06324f8476090a0d0888f99ae43dd27ad'
- '6700efd069c5870edf0e4aa826a89860254c262f437761ec0c328273604bda83'
- 'f63e79516db0feb2e76c366402cf266165c0f7eb282dc55703b800b91152867d'
- '59e0c247d006a437a619917df7e76a506aadb4d751b7d3bb476a96030620a660'
- '8a217b932b1042c14930d89f56661dbdc13b1afe04680df6b2fefceb242fb05c'
- '6853ab684f5eb39e32e0b75ead0cf19c0a883108888b003f0f80cfd07cb4f965')
-
-prepare() {
- cd ${pkgname}
-
- patch -Np1 -i ../iconPath.patch
- patch -Np1 -i ../nodeIntegration.patch
- patch -Np1 -i ../setZoomLevelLimits.patch
-}
-
-build() {
- cd ${pkgname}
-
- npm install --ignore-scripts
- cd dist
- npm install
- node ../scripts/patch-modules.js
- cd ..
- npm run build
-}
-
-package() {
- cd ${pkgname}
-
- install -dm755 "${pkgdir}/usr/lib/${pkgname}"
- rm dist/logo.png # see iconPath.patch
- asar pack dist "${pkgdir}/usr/lib/${pkgname}/app.asar"
-
- install -Dm755 ../${pkgname}.sh "${pkgdir}/usr/bin/${pkgname}"
- install -m755 ../${pkgname}.js "${pkgdir}/usr/lib/${pkgname}/${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 \
- "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
-}
Copied: react-native-debugger/repos/community-any/PKGBUILD (from rev 457387, react-native-debugger/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-05-01 05:56:51 UTC (rev 457388)
@@ -0,0 +1,60 @@
+# Maintainer: Nicola Squartini <tensor5 at gmail.com>
+
+pkgname=react-native-debugger
+pkgver=0.9.8
+_commit=2b6c2fbee7c7ba8e887c540382959976558ae3cf
+pkgrel=1
+pkgdesc='The standalone app for React Native Debugger, with React DevTools / Redux DevTools'
+arch=('any')
+url='https://github.com/jhen0409/react-native-debugger'
+license=('MIT')
+depends=('electron')
+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')
+sha256sums=('SKIP'
+ '4ac46fdbfe1658ea63f28b56ceda94b06324f8476090a0d0888f99ae43dd27ad'
+ '6700efd069c5870edf0e4aa826a89860254c262f437761ec0c328273604bda83'
+ 'f63e79516db0feb2e76c366402cf266165c0f7eb282dc55703b800b91152867d'
+ '59e0c247d006a437a619917df7e76a506aadb4d751b7d3bb476a96030620a660'
+ '8a217b932b1042c14930d89f56661dbdc13b1afe04680df6b2fefceb242fb05c'
+ '6853ab684f5eb39e32e0b75ead0cf19c0a883108888b003f0f80cfd07cb4f965')
+
+prepare() {
+ cd ${pkgname}
+
+ patch -Np1 -i ../iconPath.patch
+ patch -Np1 -i ../nodeIntegration.patch
+ patch -Np1 -i ../setZoomLevelLimits.patch
+}
+
+build() {
+ cd ${pkgname}
+
+ npm install --ignore-scripts
+ cd dist
+ npm install
+ node ../scripts/patch-modules.js
+ cd ..
+ npm run build
+}
+
+package() {
+ cd ${pkgname}
+
+ install -dm755 "${pkgdir}/usr/lib/${pkgname}"
+ rm dist/logo.png # see iconPath.patch
+ asar pack dist "${pkgdir}/usr/lib/${pkgname}/app.asar"
+
+ install -Dm755 ../${pkgname}.sh "${pkgdir}/usr/bin/${pkgname}"
+ install -m755 ../${pkgname}.js "${pkgdir}/usr/lib/${pkgname}/${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 \
+ "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+}
Deleted: iconPath.patch
===================================================================
--- iconPath.patch 2019-05-01 05:55:42 UTC (rev 457387)
+++ iconPath.patch 2019-05-01 05:56:51 UTC (rev 457388)
@@ -1,11 +0,0 @@
---- a/electron/main.js
-+++ b/electron/main.js
-@@ -7,7 +7,7 @@
- import { readConfig } from './config';
- import { sendSyncState } from './sync-state';
-
--const iconPath = path.resolve(__dirname, 'logo.png');
-+const iconPath = '/usr/share/pixmaps/react-native-debugger.png';
- const defaultOptions = { iconPath };
-
- startListeningHandleURL(async (host, port) => {
Copied: react-native-debugger/repos/community-any/iconPath.patch (from rev 457387, react-native-debugger/trunk/iconPath.patch)
===================================================================
--- iconPath.patch (rev 0)
+++ iconPath.patch 2019-05-01 05:56:51 UTC (rev 457388)
@@ -0,0 +1,11 @@
+--- a/electron/main.js
++++ b/electron/main.js
+@@ -7,7 +7,7 @@
+ import { readConfig } from './config';
+ import { sendSyncState } from './sync-state';
+
+-const iconPath = path.resolve(__dirname, 'logo.png');
++const iconPath = '/usr/share/pixmaps/react-native-debugger.png';
+ const defaultOptions = { iconPath };
+
+ startListeningHandleURL(async (host, port) => {
Deleted: nodeIntegration.patch
===================================================================
--- nodeIntegration.patch 2019-05-01 05:55:42 UTC (rev 457387)
+++ nodeIntegration.patch 2019-05-01 05:56:51 UTC (rev 457388)
@@ -1,12 +0,0 @@
---- a/electron/window.js
-+++ b/electron/window.js
-@@ -91,6 +91,9 @@
- backgroundColor: '#272c37',
- tabbingIdentifier: 'rndebugger',
- ...config.windowBounds,
-+ webPreferences: {
-+ nodeIntegration: true,
-+ },
- });
- const isFirstWindow = BrowserWindow.getAllWindows().length === 1;
-
Copied: react-native-debugger/repos/community-any/nodeIntegration.patch (from rev 457387, react-native-debugger/trunk/nodeIntegration.patch)
===================================================================
--- nodeIntegration.patch (rev 0)
+++ nodeIntegration.patch 2019-05-01 05:56:51 UTC (rev 457388)
@@ -0,0 +1,12 @@
+--- a/electron/window.js
++++ b/electron/window.js
+@@ -91,6 +91,9 @@
+ backgroundColor: '#272c37',
+ tabbingIdentifier: 'rndebugger',
+ ...config.windowBounds,
++ webPreferences: {
++ nodeIntegration: true,
++ },
+ });
+ const isFirstWindow = BrowserWindow.getAllWindows().length === 1;
+
Deleted: react-native-debugger.desktop
===================================================================
--- react-native-debugger.desktop 2019-05-01 05:55:42 UTC (rev 457387)
+++ react-native-debugger.desktop 2019-05-01 05:56:51 UTC (rev 457388)
@@ -1,8 +0,0 @@
-[Desktop Entry]
-Type=Application
-Name=React Native Debugger
-Comment=The standalone app for React Native Debugger, with React DevTools / Redux DevTools
-Icon=react-native-debugger
-Exec=react-native-debugger
-Categories=Debugger;Development;GTK;
-StartupNotify=true
Copied: react-native-debugger/repos/community-any/react-native-debugger.desktop (from rev 457387, react-native-debugger/trunk/react-native-debugger.desktop)
===================================================================
--- react-native-debugger.desktop (rev 0)
+++ react-native-debugger.desktop 2019-05-01 05:56:51 UTC (rev 457388)
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Type=Application
+Name=React Native Debugger
+Comment=The standalone app for React Native Debugger, with React DevTools / Redux DevTools
+Icon=react-native-debugger
+Exec=react-native-debugger
+Categories=Debugger;Development;GTK;
+StartupNotify=true
Deleted: react-native-debugger.js
===================================================================
--- react-native-debugger.js 2019-05-01 05:55:42 UTC (rev 457387)
+++ react-native-debugger.js 2019-05-01 05:56:51 UTC (rev 457388)
@@ -1,29 +0,0 @@
-#!/usr/bin/electron
-
-const name = "react-native-debugger";
-
-const {app} = require("electron");
-const fs = require("fs");
-const {join} = require("path");
-
-// Change command name.
-const fd = fs.openSync("/proc/self/comm", fs.constants.O_WRONLY);
-fs.writeSync(fd, name);
-fs.closeSync(fd);
-
-// Remove first command line argument (/usr/bin/electron).
-process.argv.splice(0, 1);
-
-// Set application paths.
-const appPath = join(__dirname, "app.asar");
-const packageJson = require(join(appPath, "package.json"));
-const productName = packageJson.productName;
-app.setAppPath(appPath);
-app.setDesktopName(name + ".desktop");
-app.setName(productName);
-app.setPath("userCache", join(app.getPath("cache"), productName));
-app.setPath("userData", join(app.getPath("appData"), productName));
-app.setVersion(packageJson.version);
-
-// Run the application.
-require("module")._load(appPath, module, true);
Copied: react-native-debugger/repos/community-any/react-native-debugger.js (from rev 457387, react-native-debugger/trunk/react-native-debugger.js)
===================================================================
--- react-native-debugger.js (rev 0)
+++ react-native-debugger.js 2019-05-01 05:56:51 UTC (rev 457388)
@@ -0,0 +1,29 @@
+#!/usr/bin/electron
+
+const name = "react-native-debugger";
+
+const {app} = require("electron");
+const fs = require("fs");
+const {join} = require("path");
+
+// Change command name.
+const fd = fs.openSync("/proc/self/comm", fs.constants.O_WRONLY);
+fs.writeSync(fd, name);
+fs.closeSync(fd);
+
+// Remove first command line argument (/usr/bin/electron).
+process.argv.splice(0, 1);
+
+// Set application paths.
+const appPath = join(__dirname, "app.asar");
+const packageJson = require(join(appPath, "package.json"));
+const productName = packageJson.productName;
+app.setAppPath(appPath);
+app.setDesktopName(name + ".desktop");
+app.setName(productName);
+app.setPath("userCache", join(app.getPath("cache"), productName));
+app.setPath("userData", join(app.getPath("appData"), productName));
+app.setVersion(packageJson.version);
+
+// Run the application.
+require("module")._load(appPath, module, true);
Deleted: react-native-debugger.sh
===================================================================
--- react-native-debugger.sh 2019-05-01 05:55:42 UTC (rev 457387)
+++ react-native-debugger.sh 2019-05-01 05:56:51 UTC (rev 457388)
@@ -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
Copied: react-native-debugger/repos/community-any/react-native-debugger.sh (from rev 457387, react-native-debugger/trunk/react-native-debugger.sh)
===================================================================
--- react-native-debugger.sh (rev 0)
+++ react-native-debugger.sh 2019-05-01 05:56:51 UTC (rev 457388)
@@ -0,0 +1,7 @@
+#!/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-05-01 05:55:42 UTC (rev 457387)
+++ setZoomLevelLimits.patch 2019-05-01 05:56:51 UTC (rev 457388)
@@ -1,11 +0,0 @@
---- a/app/index.js
-+++ b/app/index.js
-@@ -15,7 +15,7 @@
- const currentWindow = remote.getCurrentWindow();
-
- webFrame.setZoomFactor(1);
--webFrame.setZoomLevelLimits(1, 1);
-+webFrame.setVisualZoomLevelLimits(1, 1);
- if (process.env.E2E_TEST) {
- webFrame.registerURLSchemeAsPrivileged('file');
- }
Copied: react-native-debugger/repos/community-any/setZoomLevelLimits.patch (from rev 457387, react-native-debugger/trunk/setZoomLevelLimits.patch)
===================================================================
--- setZoomLevelLimits.patch (rev 0)
+++ setZoomLevelLimits.patch 2019-05-01 05:56:51 UTC (rev 457388)
@@ -0,0 +1,11 @@
+--- a/app/index.js
++++ b/app/index.js
+@@ -15,7 +15,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