From 46261325bea1593d5c438a0fe1f945450ee5ac96 Mon Sep 17 00:00:00 2001
From: Jody Bruchon <jody@c02ware.com>
Date: Tue, 16 Feb 2021 06:11:47 -0500
Subject: [PATCH] #89 [pyinst.py] Exclude vcruntime140.dll from UPX (#89)

Related: https://github.com/blackjack4494/yt-dlc/pull/182 (7b400ac40b8e9ce5abaa6d0293fa9d4f017cf1f3)

Authored by: jbruchon
---
 pyinst.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pyinst.py b/pyinst.py
index b6608de22..e7b6dba25 100644
--- a/pyinst.py
+++ b/pyinst.py
@@ -73,6 +73,7 @@ PyInstaller.__main__.run([
     '--exclude-module=ytdlp_plugins',
     '--hidden-import=mutagen',
     '--hidden-import=Crypto',
+    '--upx-exclude=vcruntime140.dll',
     'youtube_dlc/__main__.py',
 ])
 SetVersion('dist/youtube-dlc%s.exe' % _x86, VERSION_FILE)