aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-10-16 03:38:01 -0400
committerGitHub <noreply@github.com>2018-10-16 03:38:01 -0400
commit9ea4ca448a4c663ffa2320ca4ef63d709f2c21a6 (patch)
treeb231842c7eb5b89df988ea2b0ba5d04b212f8bdd
parent1652fe2a91e43d27350a8230363da8d28dfbf678 (diff)
parent589b27817f8642b0f29f83ca26d8a500d4162ad7 (diff)
downloadservo-9ea4ca448a4c663ffa2320ca4ef63d709f2c21a6.tar.gz
servo-9ea4ca448a4c663ffa2320ca4ef63d709f2c21a6.zip
Auto merge of #21913 - ferjm:rm.windows.nightly.zip, r=jdm
Clean some temporary files from Windows packaging process - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21913) <!-- Reviewable:end -->
-rw-r--r--python/servo/package_commands.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py
index 94d7e9a4a6e..91ca1628ee3 100644
--- a/python/servo/package_commands.py
+++ b/python/servo/package_commands.py
@@ -381,16 +381,15 @@ class PackageCommands(CommandBase):
except subprocess.CalledProcessError as e:
print("WiX light exited with return value %d" % e.returncode)
return e.returncode
- print("Packaged Servo into " + path.join(dir_to_msi, "Installer.msi"))
+ dir_to_installer = path.join(dir_to_msi, "Installer.msi")
+ print("Packaged Servo into " + dir_to_installer)
# 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')
+ gstreamer_msi_path = path.join(dir_to_msi, 'Gstreamer.msi')
if not os.path.exists(gstreamer_msi_path):
print('Fetching GStreamer installer. This may take a while...')
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)
- shutil.copy(gstreamer_msi_path, dir_to_gst_deps)
# Generate bundle with GStreamer and Servo installers.
print("Creating bundle")
@@ -417,6 +416,7 @@ class PackageCommands(CommandBase):
print("Cleaning up")
delete(dir_to_temp)
+ delete(dir_to_installer)
else:
dir_to_temp = path.join(target_dir, 'packaging-temp')
if path.exists(dir_to_temp):