Skip to content

Commit

Permalink
manually include vc runtime in windows package
Browse files Browse the repository at this point in the history
  • Loading branch information
robhagemans committed Apr 2, 2023
1 parent bb50fbf commit 7f637f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion make/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import os
import distutils
import msilib

import shutil
import cx_Freeze
from cx_Freeze import Executable

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


class BdistMsiCommand(cx_Freeze.bdist_msi):
Expand Down

0 comments on commit 7f637f9

Please sign in to comment.