Support for real harddrive and Jmicron usb drives

This commit is contained in:
Marc
2021-12-04 23:02:31 +01:00
parent 1024e96ebc
commit 53441d5b9d
17 changed files with 333 additions and 152 deletions
+1
View File
@@ -14,6 +14,7 @@ cd src
echo "clonning"
curl https://github.com/nodejs/node/archive/refs/tags/v$VERSION.zip -L --output $VERSION.zip || exit 1
unzip $VERSION.zip || exit 1
./patch.sh
cd -
fi
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
patch -R src/node-17.1.0/lib/child_process.js patches/child_process_executor.diff
@@ -0,0 +1,18 @@
586,591d585
< } else if (typeof options.shell === 'string') {
< file = '/bin/executor';
< args = [ options.shell, '-c', command];
< } else if (process.platform === 'android') {
< file = '/system/bin/sh';
< args = ['-c', command];
593,594c587,593
< file = '/bin/executor';
< args = command.split(' ');
---
> if (typeof options.shell === 'string')
> file = options.shell;
> else if (process.platform === 'android')
> file = '/system/bin/sh';
> else
> file = '/bin/sh';
> args = ['-c', command];