Skip to content

Commit 7f637f9

Browse files
committed
manually include vc runtime in windows package
1 parent bb50fbf commit 7f637f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

make/windows.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import os
1010
import distutils
1111
import msilib
12-
12+
import shutil
1313
import cx_Freeze
1414
from cx_Freeze import Executable
1515

@@ -62,6 +62,8 @@ def run(self):
6262
remove(build_dir + 'lib/sdl2dll/dll/libopusfile-0.dll')
6363
remove(build_dir + 'lib/sdl2dll/dll/libogg-0.dll')
6464
remove(build_dir + 'lib/sdl2dll/dll/libmodplug-1.dll')
65+
# add msvcr - we can't count on cx_freeze to do it even with include_msvcr=True set
66+
shutil.copy('c:/windows/system32/vcruntime140.dll', build_dir)
6567

6668

6769
class BdistMsiCommand(cx_Freeze.bdist_msi):

0 commit comments

Comments
 (0)