Skip to content

Commit

Permalink
fix: copy vcruntime after build
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekmedia committed Jul 14, 2023
1 parent 01a6a82 commit 46a13a4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ jobs:
VCPKG_ROOT: ${{ github.workspace }}\vcpkg
run: msbuild ccextractor.sln /p:Configuration=Release-Full /p:Platform=x64
working-directory: ./windows
# - name: Display version information
# run: ./ccextractorwinfull.exe --version
# working-directory: ./windows/x64/Release-Full
- name: Display version information
run: ./ccextractorwinfull.exe --version
working-directory: ./windows/x64/Release-Full
- uses: actions/upload-artifact@v3
with:
name: CCExtractor Windows Release build
Expand Down Expand Up @@ -96,9 +96,9 @@ jobs:
VCPKG_ROOT: ${{ github.workspace }}\vcpkg
run: msbuild ccextractor.sln /p:Configuration=Debug-Full /p:Platform=x64
working-directory: ./windows
# - name: Display version information
# run: ./ccextractorwinfull.exe --version
# working-directory: ./windows/x64/Debug-Full
- name: Display version information
run: ./ccextractorwinfull.exe --version
working-directory: ./windows/x64/Debug-Full
- uses: actions/upload-artifact@v3
with:
name: CCExtractor Windows Debug build
Expand Down
10 changes: 8 additions & 2 deletions windows/ccextractor.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,10 @@
call rust.bat</Command>
</PreBuildEvent>
<PostBuildEvent>
<Command>xcopy /y "C:\Program Files\GPAC\libgpac.dll" "$(OutDir)"
<Command>
xcopy /y "$(ProjectDir)\dll\vcruntime140.dll" "$(OutDir)"
xcopy /y "$(ProjectDir)\dll\vcruntime140_1.dll" "$(OutDir)"
xcopy /y "C:\Program Files\GPAC\libgpac.dll" "$(OutDir)"
xcopy /y "C:\Program Files\GPAC\OpenSVCDecoder.dll" "$(OutDir)"
xcopy /y "C:\Program Files\GPAC\postproc-56.dll" "$(OutDir)"
xcopy /y "C:\Program Files\GPAC\swresample-4.dll" "$(OutDir)"
Expand Down Expand Up @@ -317,7 +320,10 @@
call rust.bat -r</Command>
</PreBuildEvent>
<PostBuildEvent>
<Command>xcopy /y "C:\Program Files\GPAC\libgpac.dll" "$(OutDir)"
<Command>
xcopy /y "$(ProjectDir)\dll\vcruntime140.dll" "$(OutDir)"
xcopy /y "$(ProjectDir)\dll\vcruntime140_1.dll" "$(OutDir)"
xcopy /y "C:\Program Files\GPAC\libgpac.dll" "$(OutDir)"
xcopy /y "C:\Program Files\GPAC\OpenSVCDecoder.dll" "$(OutDir)"
xcopy /y "C:\Program Files\GPAC\postproc-56.dll" "$(OutDir)"
xcopy /y "C:\Program Files\GPAC\swresample-4.dll" "$(OutDir)"
Expand Down
Binary file added windows/dll/vcruntime140.dll
Binary file not shown.
Binary file added windows/dll/vcruntime140_1.dll
Binary file not shown.

0 comments on commit 46a13a4

Please sign in to comment.