Skip to content
Snippets Groups Projects
Commit 0ca88293 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Package as xz compression on linux to reduce download size

parent e4660641
No related branches found
No related tags found
No related merge requests found
......@@ -1253,7 +1253,7 @@ def package_finish(self):
self.run_command(['find', self.get_dst_prefix(),
'-type', 'f', '-perm', old,
'-exec', 'chmod', new, '{}', ';'])
self.package_file = installer_name + '.tar.bz2'
self.package_file = installer_name + '.tar.xz'
# temporarily move directory tree so that it has the right
# name in the tarfile
......@@ -1266,10 +1266,10 @@ def package_finish(self):
# --numeric-owner hides the username of the builder for
# security etc.
self.run_command(['tar', '-C', self.get_build_prefix(),
'--numeric-owner', '-cjf',
tempname + '.tar.bz2', installer_name])
'--numeric-owner', '-cJf',
tempname + '.tar.xz', installer_name])
else:
print("Skipping %s.tar.bz2 for non-Release build (%s)" % \
print("Skipping %s.tar.xz for non-Release build (%s)" % \
(installer_name, self.args['buildtype']))
finally:
self.run_command(["mv", tempname, realname])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment