diff options
author | Matthias Lisin | 2019-10-30 00:47:31 +0100 |
---|---|---|
committer | Matthias Lisin | 2019-10-30 00:47:31 +0100 |
commit | 837cec2a29149566b224600048c8e9d1a25f8344 (patch) | |
tree | ce57d548af5ba10a9d4fc0e1323025a1736f8b8e /use-system-tools.patch | |
parent | f98748263a000738a1500b0dc835320bac74a430 (diff) | |
download | aur-837cec2a29149566b224600048c8e9d1a25f8344.tar.gz |
upgpkg: ubports-installer-git 3e68c62a
- Update disable-update-check.patch
- Force use of system android-tools
Diffstat (limited to 'use-system-tools.patch')
-rw-r--r-- | use-system-tools.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/use-system-tools.patch b/use-system-tools.patch new file mode 100644 index 000000000000..882deb6000b4 --- /dev/null +++ b/use-system-tools.patch @@ -0,0 +1,21 @@ +diff -ura package.orig/src/utils.js package.new/src/utils.js +--- package.orig/src/utils.js 2019-10-30 00:09:52.833991579 +0100 ++++ package.new/src/utils.js 2019-10-30 00:24:23.422742604 +0100 +@@ -222,16 +222,9 @@ + process.exit(-1); + } + +-let toolpath = global.packageInfo.package +- ? path.join( +- __dirname, +- "../../app.asar.unpacked/platform-tools", +- platforms[os.platform()] +- ) +- : path.join(__dirname, "..", "platform-tools", platforms[os.platform()]); + function execTool(tool, args, callback) { + exec( +- [path.join(toolpath, tool)].concat(args).join(" "), ++ [tool].concat(args).join(" "), + { options: { maxBuffer: 1024 * 1024 * 2 } }, + callback + ); |