[arch-commits] Commit in react-native-debugger/repos/community-any (10 files)
Kpcyrd
kpcyrd at gemini.archlinux.org
Wed Aug 17 09:18:21 UTC 2022
Date: Wednesday, August 17, 2022 @ 09:18:21
Author: kpcyrd
Revision: 1266694
archrelease: copy trunk to community-any
Added:
react-native-debugger/repos/community-any/PKGBUILD
(from rev 1266693, react-native-debugger/trunk/PKGBUILD)
react-native-debugger/repos/community-any/disable-context-isolation.patch
(from rev 1266693, react-native-debugger/trunk/disable-context-isolation.patch)
react-native-debugger/repos/community-any/iconPath.patch
(from rev 1266693, react-native-debugger/trunk/iconPath.patch)
react-native-debugger/repos/community-any/react-native-debugger.desktop
(from rev 1266693, react-native-debugger/trunk/react-native-debugger.desktop)
react-native-debugger/repos/community-any/react-native-debugger.js
(from rev 1266693, react-native-debugger/trunk/react-native-debugger.js)
Deleted:
react-native-debugger/repos/community-any/PKGBUILD
react-native-debugger/repos/community-any/disable-context-isolation.patch
react-native-debugger/repos/community-any/iconPath.patch
react-native-debugger/repos/community-any/react-native-debugger.desktop
react-native-debugger/repos/community-any/react-native-debugger.js
---------------------------------+
PKGBUILD | 140 +++++++++++++++++++-------------------
disable-context-isolation.patch | 20 ++---
iconPath.patch | 22 ++---
react-native-debugger.desktop | 16 ++--
react-native-debugger.js | 64 ++++++++---------
5 files changed, 131 insertions(+), 131 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-17 09:17:55 UTC (rev 1266693)
+++ PKGBUILD 2022-08-17 09:18:21 UTC (rev 1266694)
@@ -1,70 +0,0 @@
-# Maintainer: Nicola Squartini <tensor5 at gmail.com>
-
-pkgname=react-native-debugger
-pkgver=0.12.1
-_commit=816daff45247715a09bc657e13555d89bb5cb3dd
-pkgrel=4
-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=('electron12')
-makedepends=('asar' 'git' 'yarn')
-options=(!emptydirs)
-source=("git+https://github.com/jhen0409/react-native-debugger.git#commit=${_commit}"
- 'disable-context-isolation.patch'
- 'iconPath.patch'
- 'react-native-debugger.desktop'
- 'react-native-debugger.js')
-sha256sums=('SKIP'
- 'e82a75bfb28a4cafe8b90c707e1e818917511200dada09e9224042bf29c3a804'
- '75cd9814325bfcdfc5dc9f85a7ce75a021e4b3c8cd105b851eb804e7b580d474'
- 'f63e79516db0feb2e76c366402cf266165c0f7eb282dc55703b800b91152867d'
- '59f0aa629cdb6e287ba08f47ced2e442fe449b58d07e8182a10e855a3a34f433')
-
-prepare() {
- cd ${pkgname}
-
- patch -Np1 -i ../disable-context-isolation.patch
- patch -Np1 -i ../iconPath.patch
-}
-
-build() {
- cd ${pkgname}
-
- yarn --ignore-scripts
- cd dist
- yarn
- node ../scripts/patch-modules.js
- cd ..
- yarn build
-}
-
-package() {
- cd ${pkgname}
-
- install -dm755 "${pkgdir}/usr/lib"
- rm dist/logo.png # see iconPath.patch
- # asar pack dist "${pkgdir}/usr/lib/${pkgname}.asar"
- cp -r dist "${pkgdir}/usr/lib/${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 \
- "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
-
- rm "${pkgdir}/usr/lib/${pkgname}/node_modules/loose-envify/cli.js"
- rm -rf "${pkgdir}/usr/lib/${pkgname}/node_modules/apollo-client-devtools/"{assets,build,development,shells/dev,src}
- find "${pkgdir}/usr/lib/${pkgname}/node_modules" \
- -name 'bin' -prune -exec rm -r '{}' \; \
- -or -name 'example' -prune -exec rm -r '{}' \; \
- -or -name 'examples' -prune -exec rm -r '{}' \; \
- -or -name 'test' -prune -exec rm -r '{}' \; \
- -or -name 'tests' -prune -exec rm -r '{}' \; \
- -or -name '*.md' -exec rm '{}' \; \
- -or -name '*.markdown' -exec rm '{}' \; \
- -or -name 'CHANGELOG*' -prune -exec rm -r '{}' \; \
- -or -name 'Makefile' -exec rm '{}' \; \
- -or -name '.*' -prune -exec rm -r '{}' \;
-}
Copied: react-native-debugger/repos/community-any/PKGBUILD (from rev 1266693, react-native-debugger/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-08-17 09:18:21 UTC (rev 1266694)
@@ -0,0 +1,70 @@
+# Maintainer: Nicola Squartini <tensor5 at gmail.com>
+
+pkgname=react-native-debugger
+pkgver=0.13.0
+_commit=8a9a6772df1bc8ffb0f8bd1ada052a1de503477c
+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=('electron12')
+makedepends=('asar' 'git' 'yarn')
+options=(!emptydirs)
+source=("git+https://github.com/jhen0409/react-native-debugger.git#commit=${_commit}"
+ 'disable-context-isolation.patch'
+ 'iconPath.patch'
+ 'react-native-debugger.desktop'
+ 'react-native-debugger.js')
+sha256sums=('SKIP'
+ 'e82a75bfb28a4cafe8b90c707e1e818917511200dada09e9224042bf29c3a804'
+ '75cd9814325bfcdfc5dc9f85a7ce75a021e4b3c8cd105b851eb804e7b580d474'
+ 'f63e79516db0feb2e76c366402cf266165c0f7eb282dc55703b800b91152867d'
+ '59f0aa629cdb6e287ba08f47ced2e442fe449b58d07e8182a10e855a3a34f433')
+
+prepare() {
+ cd ${pkgname}
+
+ patch -Np1 -i ../disable-context-isolation.patch
+ patch -Np1 -i ../iconPath.patch
+}
+
+build() {
+ cd ${pkgname}
+
+ yarn --ignore-scripts
+ cd dist
+ yarn
+ node ../scripts/patch-modules.js
+ cd ..
+ yarn build
+}
+
+package() {
+ cd ${pkgname}
+
+ install -dm755 "${pkgdir}/usr/lib"
+ rm dist/logo.png # see iconPath.patch
+ # asar pack dist "${pkgdir}/usr/lib/${pkgname}.asar"
+ cp -r dist "${pkgdir}/usr/lib/${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 \
+ "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+
+ rm "${pkgdir}/usr/lib/${pkgname}/node_modules/loose-envify/cli.js"
+ rm -rf "${pkgdir}/usr/lib/${pkgname}/node_modules/apollo-client-devtools/"{assets,build,development,shells/dev,src}
+ find "${pkgdir}/usr/lib/${pkgname}/node_modules" \
+ -name 'bin' -prune -exec rm -r '{}' \; \
+ -or -name 'example' -prune -exec rm -r '{}' \; \
+ -or -name 'examples' -prune -exec rm -r '{}' \; \
+ -or -name 'test' -prune -exec rm -r '{}' \; \
+ -or -name 'tests' -prune -exec rm -r '{}' \; \
+ -or -name '*.md' -exec rm '{}' \; \
+ -or -name '*.markdown' -exec rm '{}' \; \
+ -or -name 'CHANGELOG*' -prune -exec rm -r '{}' \; \
+ -or -name 'Makefile' -exec rm '{}' \; \
+ -or -name '.*' -prune -exec rm -r '{}' \;
+}
Deleted: disable-context-isolation.patch
===================================================================
--- disable-context-isolation.patch 2022-08-17 09:17:55 UTC (rev 1266693)
+++ disable-context-isolation.patch 2022-08-17 09:18:21 UTC (rev 1266694)
@@ -1,10 +0,0 @@
---- a/electron/window.js
-+++ b/electron/window.js
-@@ -99,6 +99,7 @@
- backgroundColor: '#272c37',
- tabbingIdentifier: 'rndebugger',
- webPreferences: {
-+ contextIsolation: false,
- nodeIntegration: true,
- enableRemoteModule: true,
- },
Copied: react-native-debugger/repos/community-any/disable-context-isolation.patch (from rev 1266693, react-native-debugger/trunk/disable-context-isolation.patch)
===================================================================
--- disable-context-isolation.patch (rev 0)
+++ disable-context-isolation.patch 2022-08-17 09:18:21 UTC (rev 1266694)
@@ -0,0 +1,10 @@
+--- a/electron/window.js
++++ b/electron/window.js
+@@ -99,6 +99,7 @@
+ backgroundColor: '#272c37',
+ tabbingIdentifier: 'rndebugger',
+ webPreferences: {
++ contextIsolation: false,
+ nodeIntegration: true,
+ enableRemoteModule: true,
+ },
Deleted: iconPath.patch
===================================================================
--- iconPath.patch 2022-08-17 09:17:55 UTC (rev 1266693)
+++ iconPath.patch 2022-08-17 09:18:21 UTC (rev 1266694)
@@ -1,11 +0,0 @@
---- a/electron/main.js
-+++ b/electron/main.js
-@@ -12,7 +12,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 };
-
- startListeningHandleURL(async (host, port) => {
Copied: react-native-debugger/repos/community-any/iconPath.patch (from rev 1266693, react-native-debugger/trunk/iconPath.patch)
===================================================================
--- iconPath.patch (rev 0)
+++ iconPath.patch 2022-08-17 09:18:21 UTC (rev 1266694)
@@ -0,0 +1,11 @@
+--- a/electron/main.js
++++ b/electron/main.js
+@@ -12,7 +12,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 };
+
+ startListeningHandleURL(async (host, port) => {
Deleted: react-native-debugger.desktop
===================================================================
--- react-native-debugger.desktop 2022-08-17 09:17:55 UTC (rev 1266693)
+++ react-native-debugger.desktop 2022-08-17 09:18:21 UTC (rev 1266694)
@@ -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 1266693, react-native-debugger/trunk/react-native-debugger.desktop)
===================================================================
--- react-native-debugger.desktop (rev 0)
+++ react-native-debugger.desktop 2022-08-17 09:18:21 UTC (rev 1266694)
@@ -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 2022-08-17 09:17:55 UTC (rev 1266693)
+++ react-native-debugger.js 2022-08-17 09:18:21 UTC (rev 1266694)
@@ -1,32 +0,0 @@
-#!/usr/bin/electron12
-
-const name = "react-native-debugger";
-
-const {app} = require("electron");
-const fs = require("fs");
-const {dirname, join} = require("path");
-
-// Set environment variables.
-process.env.PACKAGE = 'no';
-
-// 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(__dirname), "lib", name);
-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 1266693, react-native-debugger/trunk/react-native-debugger.js)
===================================================================
--- react-native-debugger.js (rev 0)
+++ react-native-debugger.js 2022-08-17 09:18:21 UTC (rev 1266694)
@@ -0,0 +1,32 @@
+#!/usr/bin/electron12
+
+const name = "react-native-debugger";
+
+const {app} = require("electron");
+const fs = require("fs");
+const {dirname, join} = require("path");
+
+// Set environment variables.
+process.env.PACKAGE = 'no';
+
+// 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(__dirname), "lib", name);
+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);
More information about the arch-commits
mailing list