Skip to content

Commit

Permalink
Add SCModelDownloader build bat
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Sep 11, 2022
1 parent bcc6acf commit 666e983
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ jobs:
run: build-CaptionMod.bat
shell: cmd

- name: Build SCModelDownloader.dll
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-SCModelDownloader.bat
shell: cmd

- name: Build CommunicationDemo.dll
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-CommunicationDemo.bat
Expand Down
12 changes: 12 additions & 0 deletions build-SCModelDownloader.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cd /d "%~dp0"

for /f "usebackq tokens=*" %%i in (`vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do (
set InstallDir=%%i
)

if exist "%InstallDir%\Common7\Tools\vsdevcmd.bat" (

"%InstallDir%\Common7\Tools\vsdevcmd.bat" -arch=x86

MSBuild.exe "Plugins/SCModelDownloader/SCModelDownloader.vcxproj" /p:Configuration=Release /p:Platform="Win32"
)

0 comments on commit 666e983

Please sign in to comment.