mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Clean some temporary files from Windows packaging process
This commit is contained in:
parent
597f7c1cc6
commit
589b27817f
1 changed files with 4 additions and 4 deletions
|
@ -381,16 +381,15 @@ class PackageCommands(CommandBase):
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
print("WiX light exited with return value %d" % e.returncode)
|
print("WiX light exited with return value %d" % e.returncode)
|
||||||
return 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.
|
# Download GStreamer installer. Only once.
|
||||||
dir_to_gst_deps = path.join(dir_to_msi, 'Gstreamer.msi')
|
gstreamer_msi_path = path.join(dir_to_msi, 'Gstreamer.msi')
|
||||||
gstreamer_msi_path = path.join(target_dir, 'Gstreamer.msi')
|
|
||||||
if not os.path.exists(gstreamer_msi_path):
|
if not os.path.exists(gstreamer_msi_path):
|
||||||
print('Fetching GStreamer installer. This may take a while...')
|
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'
|
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)
|
urllib.urlretrieve(gstreamer_url, gstreamer_msi_path)
|
||||||
shutil.copy(gstreamer_msi_path, dir_to_gst_deps)
|
|
||||||
|
|
||||||
# Generate bundle with GStreamer and Servo installers.
|
# Generate bundle with GStreamer and Servo installers.
|
||||||
print("Creating bundle")
|
print("Creating bundle")
|
||||||
|
@ -417,6 +416,7 @@ class PackageCommands(CommandBase):
|
||||||
|
|
||||||
print("Cleaning up")
|
print("Cleaning up")
|
||||||
delete(dir_to_temp)
|
delete(dir_to_temp)
|
||||||
|
delete(dir_to_installer)
|
||||||
else:
|
else:
|
||||||
dir_to_temp = path.join(target_dir, 'packaging-temp')
|
dir_to_temp = path.join(target_dir, 'packaging-temp')
|
||||||
if path.exists(dir_to_temp):
|
if path.exists(dir_to_temp):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue