Index: remoting/webapp/build-webapp.py |
diff --git a/remoting/webapp/build-webapp.py b/remoting/webapp/build-webapp.py |
index cd00d73a2b98987152b194b759203a3487e70415..84c962915d9a66fe0ccd01e46a9216a3fd71618e 100755 |
--- a/remoting/webapp/build-webapp.py |
+++ b/remoting/webapp/build-webapp.py |
@@ -191,6 +191,22 @@ def buildWebApp(buildtype, mimetype, destination, zip_path, plugin, files, |
"OAUTH2_REDIRECT_URL", |
oauth2RedirectUrlJson) |
+ # Set the correct API keys. |
+ if (buildtype == 'Official'): |
+ apiClientId = ('440925447803-avn2sj1kc099s0r7v62je5s339mu0am1.' + |
+ 'apps.googleusercontent.com') |
+ apiClientSecret = 'Bgur6DFiOMM1h8x-AQpuTQlK' |
+ else: |
+ apiClientId = ('440925447803-2pi3v45bff6tp1rde2f7q6lgbor3o5uj.' + |
+ 'apps.googleusercontent.com') |
+ apiClientSecret = 'W2ieEsG-R1gIA4MMurGrgMc_' |
+ findAndReplace(os.path.join(destination, 'plugin_settings.js'), |
+ "'API_CLIENT_ID'", |
+ "'" + apiClientId + "'") |
+ findAndReplace(os.path.join(destination, 'plugin_settings.js'), |
+ "'API_CLIENT_SECRET'", |
+ "'" + apiClientSecret + "'") |
+ |
# Make the zipfile. |
createZip(zip_path, destination) |