diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2018-09-11 17:51:46 +0200 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2018-09-11 17:51:46 +0200 |
commit | 84160613413aa3f9bfc447d4c0e61e7b846b9392 (patch) | |
tree | c4b98fb30866ee05d2d3012609f037cac02f1316 /python/servo/package_commands.py | |
parent | a56dc489d5d6f8e04d9606ca45c4f71d810b3caa (diff) | |
download | servo-84160613413aa3f9bfc447d4c0e61e7b846b9392.tar.gz servo-84160613413aa3f9bfc447d4c0e61e7b846b9392.zip |
Make tidy happy
Diffstat (limited to 'python/servo/package_commands.py')
-rw-r--r-- | python/servo/package_commands.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py index b9cd1f1d501..020a0492cd1 100644 --- a/python/servo/package_commands.py +++ b/python/servo/package_commands.py @@ -160,6 +160,7 @@ def copy_windows_dependencies(binary_path, destination): else: shutil.copy(nspr4_path, destination) + def change_prefs(resources_path, platform): print("Swapping prefs") prefs_path = path.join(resources_path, "prefs.json") @@ -368,19 +369,19 @@ class PackageCommands(CommandBase): print("Packaged Servo into " + path.join(dir_to_msi, "Installer.msi")) # Download GStreamer installer. Only once. - dir_to_gst_deps = path.join(dir_to_msi, 'Gstreamer.msi'); - gstreamer_msi_path = path.join(target_dir, 'Gstreamer.msi'); + dir_to_gst_deps = path.join(dir_to_msi, 'Gstreamer.msi') + gstreamer_msi_path = path.join(target_dir, 'Gstreamer.msi') if os.path.exists(gstreamer_msi_path): shutil.copy(gstreamer_msi_path, dir_to_gst_deps) else: print('Fetching GStreamer installer. This may take a while...') - urllib.urlretrieve('https://gstreamer.freedesktop.org/data/pkg/windows/1.14.2/gstreamer-1.0-x86-1.14.2.msi', gstreamer_msi_path) + gstreamer_url = 'https://gstreamer.freedesktop.org/data/pkg/windows/1.14.2/gstreamer-1.0-x86-1.14.2.msi' + urllib.urlretrieve(gstreamer_url, gstreamer_msi_path) # Generate bundle with GStreamer and Servo installers. print("Creating bundle") shutil.copy(path.join(dir_to_root, 'support', 'windows', 'Servo.wxs'), dir_to_msi) bundle_wxs_path = path.join(dir_to_msi, 'Servo.wxs') - dir_to_bundle_msi = path.join(dir_to_msi, 'Servo.msi') try: with cd(dir_to_msi): subprocess.check_call(['candle', bundle_wxs_path, '-ext', 'WixBalExtension']) |