Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Fix building scripts #743

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions build/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,5 @@
},
"extends": ["eslint:recommended", "webrtc"],
"globals": {
"adapter": true,
"AppController": true,
"audioContext": true,
"browserSupportsIPHandlingPolicy": true,
"browserSupportsNonProxiedUdpBoolean": true,
"Call": true,
"chrome": true,
"ga": true,
"getPolicyFromBooleans": true,
"remoteVideo": true,
"trace": true,
"queryStringToDictionary": true
}
}
14 changes: 10 additions & 4 deletions build/ensure_gcloud_sdk_is_installed.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import sys
import tarfile
import urllib2
import platform

# We are downloading a specific version of the Gcloud SDK because we have not
# found a URL to fetch the "latest" version.
Expand All @@ -14,14 +15,18 @@
# https://cloud.google.com/sdk/downloads#versioned

GCLOUD_DOWNLOAD_URL = 'https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/'
GCLOUD_SDK_TAR_FILE = 'google-cloud-sdk-308.0.0-linux-x86_64.tar.gz'
system = platform.system().lower()
machine = platform.machine().lower()
if machine == 'arm64' or machine == 'aarch64':
machine = 'arm'
GCLOUD_SDK_TAR_FILE = 'google-cloud-sdk-404.0.0-' + system + '-' + machine + '.tar.gz'
GCLOUD_SDK_INSTALL_FOLDER = 'google-cloud-sdk'
TEMP_DIR = 'temp'
GCLOUD_SDK_PATH = os.path.join(TEMP_DIR, GCLOUD_SDK_INSTALL_FOLDER)

def _Download(url, to):
print 'Downloading %s to %s...' % (url, to)
request = urllib2.urlopen(url)
request = urllib2.Request(url)
try:
f = urllib2.urlopen(request)
with open(to, 'wb') as to_file:
Expand All @@ -41,9 +46,10 @@ def _Extract(file_to_extract_path, destination_path):
def _EnsureAppEngineIsInstalled(path_to_gcloud_sdk):
gcloud_exec = os.path.join(path_to_gcloud_sdk, 'bin', 'gcloud')
subprocess.call([gcloud_exec, '--quiet',
'components', 'install', 'app-engine-python'])
'components', 'install', 'app-engine-python',
'app-engine-python-extras', 'cloud-datastore-emulator'])
subprocess.call([gcloud_exec, '--quiet',
'components', 'update'])
'components', 'update'])


def _Cleanup(file_paths_to_remove):
Expand Down
Loading