1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
Description: Use the Node.js binary installed system-wide to build chromium's WebUI
The upstream source tarball doesn't include the Node.js binaries the build system
refers to, and even if it did there is no upstream Node.js release for i386.
Author: Olivier Tilloy <olivier.tilloy@canonical.com>
--- a/third_party/node/node.py
+++ b/third_party/node/node.py
@@ -3,21 +3,13 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from os import path as os_path
-import platform
import subprocess
import sys
import os
def GetBinaryPath():
- darwin_name = ('node-darwin-arm64' if platform.machine() == 'arm64' else
- 'node-darwin-x64')
- return os_path.join(os_path.dirname(__file__), *{
- 'Darwin': ('mac', darwin_name, 'bin', 'node'),
- 'Linux': ('linux', 'node-linux-x64', 'bin', 'node'),
- 'Windows': ('win', 'node.exe'),
- }[platform.system()])
+ return '/usr/lib/nodejs-mozilla/bin/node'
def RunNode(cmd_parts, stdout=None):
|