Skip to content

Commit

Permalink
Reduce the size of Windows Group Policy templates (#15845)
Browse files Browse the repository at this point in the history
brave_policy_templates.zip is now 4 MiB instead of 40.
  • Loading branch information
mherrmann authored Nov 8, 2022
1 parent 9106e06 commit d907660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/policy/pack_policy_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

from os.path import join, exists, relpath
from tempfile import TemporaryDirectory
from zipfile import ZipFile
from zipfile import ZipFile, ZIP_DEFLATED

def main():
chrome_policy_zip, dest_zip = _get_args()
Expand Down Expand Up @@ -41,7 +41,7 @@ def _pack_policy_templates(chrome_policy_zip, dest_zip):
assert exists(join(tmp_dir, 'windows/admx/chrome.admx'))
assert exists(join(tmp_dir, 'windows/admx/en-US/chrome.adml'))

with ZipFile(dest_zip, 'w') as dest_zipfile:
with ZipFile(dest_zip, 'w', ZIP_DEFLATED) as dest_zipfile:
for dirpath, _, filenames in os.walk(tmp_dir):
for filename in filenames:
filepath = join(dirpath, filename)
Expand Down

0 comments on commit d907660

Please sign in to comment.