Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce the size of Windows Group Policy templates #15845

Merged
merged 1 commit into from
Nov 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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