Skip to content

Commit

Permalink
feat: copy vcruntime dll
Browse files Browse the repository at this point in the history
  • Loading branch information
barry-ran committed Jan 9, 2022
1 parent f264181 commit c71942c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ci/win/publish_for_win.bat
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,17 @@ if /i %cpu_mode% == x86 (
)

:: copy vcruntime dll
:: 只有在64位下需要这个
if /i %cpu_mode% == x64 (
cp "C:\Windows\System32\vcruntime140_1.dll" %publish_path%\vcruntime140_1.dll
cp "C:\Windows\System32\msvcp140_1.dll" %publish_path%\msvcp140_1.dll
cp "C:\Windows\System32\msvcp140.dll" %publish_path%\msvcp140.dll
cp "C:\Windows\System32\vcruntime140.dll" %publish_path%\vcruntime140.dll
:: 只有x64需要
cp "C:\Windows\System32\vcruntime140_1.dll" %publish_path%\vcruntime140_1.dll
) else (
cp "C:\Windows\SysWOW64\msvcp140_1.dll" %publish_path%\msvcp140_1.dll
cp "C:\Windows\SysWOW64\msvcp140.dll" %publish_path%\msvcp140.dll
cp "C:\Windows\SysWOW64\vcruntime140.dll" %publish_path%\vcruntime140.dll

)

::cp "C:\Program Files (x86)\Microsoft Visual Studio\Installer\VCRUNTIME140.dll" %publish_path%\VCRUNTIME140.dll
Expand Down

0 comments on commit c71942c

Please sign in to comment.