radi-sh版BonDriverをビルドするバッチファイル

スポンサーリンク
スポンサーリンク
TS抜き

ソースをダウンロードしてビルド、アーカイブを作成するバッチファイルです。

スポンサーリンク
スポンサーリンク

必要

VS2019

こちらの記事を参考にインストールしてください。

Git for Windows

公式サイトの「Download」をクリックします。

インストールで特に変更するところはありません。

7-Zip

公式サイトからダウンロードしてインストールします。

バッチファイル

拡張子を.batにして保存します。

@echo off
cd /d %~dp0

git -C BonDriver_BDA pull || git clone --recursive https://github.com/radi-sh/BonDriver_BDA.git
git -C BDASpecial-PlexPX pull || git clone --recursive https://github.com/radi-sh/BDASpecial-PlexPX.git
git -C Rijndael4plex pull || git clone https://github.com/radi-sh/Rijndael4plex.git
git -C BDASpecial-IT35 pull || git clone --recursive https://github.com/radi-sh/BDASpecial-IT35.git
git -C BDASpecial-DD pull || git clone --recursive https://github.com/radi-sh/BDASpecial-DD.git
git -C BDASpecial-LWire pull || git clone --recursive https://github.com/radi-sh/BDASpecial-LWire.git

if exist BonDriver_BDA\BdaSpecials\PlexPX rd /s /q BonDriver_BDA\BdaSpecials\PlexPX
if exist BonDriver_BDA\aes rd /s /q BonDriver_BDA\aes
if exist BonDriver_BDA\BdaSpecials\IT35 rd /s /q BonDriver_BDA\BdaSpecials\IT35
if exist BonDriver_BDA\CardReader rd /s /q BonDriver_BDA\CardReader
if exist BonDriver_BDA\BdaSpecials\DD rd /s /q BonDriver_BDA\BdaSpecials\DD
if exist BonDriver_BDA\BdaSpecials\LWire rd /s /q BonDriver_BDA\BdaSpecials\LWire

xcopy /e /v BDASpecial-PlexPX\BdaSpecials BonDriver_BDA\BdaSpecials >nul
xcopy /i /v Rijndael4plex\aes BonDriver_BDA\aes >nul
xcopy /e /v BDASpecial-IT35\BdaSpecials BonDriver_BDA\BdaSpecials >nul
xcopy /i /v BDASpecial-IT35\CardReader BonDriver_BDA\CardReader >nul
xcopy /e /v BDASpecial-DD\BdaSpecials BonDriver_BDA\BdaSpecials >nul
xcopy /e /v BDASpecial-LWire\BdaSpecials BonDriver_BDA\BdaSpecials >nul

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

call "%InstallDir%\Common7\Tools\VsDevCmd.bat" -no_logo

cd BonDriver_BDA
MSBuild BonDriver_BDA.sln /nologo /m /t:Rebuild /p:Configuration=Release;Platform=Win32
if errorlevel 1 exit /b 1
MSBuild BonDriver_BDA.sln /nologo /m /t:Rebuild /p:Configuration=Release;Platform=x64
if errorlevel 1 exit /b 1
MSBuild BonDriver_BDA.sln /nologo /m /t:Rebuild /p:Configuration=Release_Static;Platform=Win32
if errorlevel 1 exit /b 1
MSBuild BonDriver_BDA.sln /nologo /m /t:Rebuild /p:Configuration=Release_Static;Platform=x64
if errorlevel 1 exit /b 1

cd ..
if exist BonDriver_BDA\package\bin rd /s /q BonDriver_BDA\package\bin
if exist BDASpecial-PlexPX\package\bin rd /s /q BDASpecial-PlexPX\package\bin
if exist BDASpecial-IT35\package\bin rd /s /q BDASpecial-IT35\package\bin
if exist BDASpecial-DD\package\bin rd /s /q BDASpecial-DD\package\bin
if exist BDASpecial-LWire\package\bin rd /s /q BDASpecial-LWire\package\bin

cd BonDriver_BDA\Win32\Release
echo D | xcopy /v BonDriver_BDA.dll ..\..\package\bin\x86\Release >nul
echo D | xcopy /v DVBWorld.dll ..\..\package\bin\x86\Release >nul
echo D | xcopy /v TBS.dll ..\..\package\bin\x86\Release >nul
echo D | xcopy /v PlexPX.dll ..\..\..\BDASpecial-PlexPX\package\bin\x86\Release >nul
echo D | xcopy /v IT35.dll ..\..\..\BDASpecial-IT35\package\bin\x86\Release >nul
echo F | xcopy /v WinSCard-x3U4.dll ..\..\..\BDASpecial-IT35\package\bin\x86\Release\WinSCard.dll >nul
echo D | xcopy /v x3U4Remocon.tvtp ..\..\..\BDASpecial-IT35\package\bin\x86\Release >nul
echo D | xcopy /v DD.dll ..\..\..\BDASpecial-DD\package\bin\x86\Release >nul
echo D | xcopy /v LWire.dll ..\..\..\BDASpecial-LWire\package\bin\x86\Release >nul

cd ..\Release_Static
echo D | xcopy /v BonDriver_BDA.dll ..\..\package\bin\x86\Release_Static >nul
echo D | xcopy /v DVBWorld.dll ..\..\package\bin\x86\Release_Static >nul
echo D | xcopy /v TBS.dll ..\..\package\bin\x86\Release_Static >nul
echo D | xcopy /v PlexPX.dll ..\..\..\BDASpecial-PlexPX\package\bin\x86\Release_Static >nul
echo D | xcopy /v IT35.dll ..\..\..\BDASpecial-IT35\package\bin\x86\Release_Static >nul
echo F | xcopy /v WinSCard-x3U4.dll ..\..\..\BDASpecial-IT35\package\bin\x86\Release_Static\WinSCard.dll >nul
echo D | xcopy /v x3U4Remocon.tvtp ..\..\..\BDASpecial-IT35\package\bin\x86\Release_Static >nul
echo D | xcopy /v DD.dll ..\..\..\BDASpecial-DD\package\bin\x86\Release_Static >nul
echo D | xcopy /v LWire.dll ..\..\..\BDASpecial-LWire\package\bin\x86\Release_Static >nul

cd ..\..\x64\Release
echo D | xcopy /v BonDriver_BDA.dll ..\..\package\bin\x64\Release >nul
echo D | xcopy /v DVBWorld.dll ..\..\package\bin\x64\Release >nul
echo D | xcopy /v TBS.dll ..\..\package\bin\x64\Release >nul
echo D | xcopy /v PlexPX.dll ..\..\..\BDASpecial-PlexPX\package\bin\x64\Release >nul
echo D | xcopy /v IT35.dll ..\..\..\BDASpecial-IT35\package\bin\x64\Release >nul
echo F | xcopy /v WinSCard-x3U4.dll ..\..\..\BDASpecial-IT35\package\bin\x64\Release\WinSCard.dll >nul
echo D | xcopy /v x3U4Remocon.tvtp ..\..\..\BDASpecial-IT35\package\bin\x64\Release >nul
echo D | xcopy /v DD.dll ..\..\..\BDASpecial-DD\package\bin\x64\Release >nul
echo D | xcopy /v LWire.dll ..\..\..\BDASpecial-LWire\package\bin\x64\Release >nul

cd ..\Release_Static
echo D | xcopy /v BonDriver_BDA.dll ..\..\package\bin\x64\Release_Static >nul
echo D | xcopy /v DVBWorld.dll ..\..\package\bin\x64\Release_Static >nul
echo D | xcopy /v TBS.dll ..\..\package\bin\x64\Release_Static >nul
echo D | xcopy /v PlexPX.dll ..\..\..\BDASpecial-PlexPX\package\bin\x64\Release_Static >nul
echo D | xcopy /v IT35.dll ..\..\..\BDASpecial-IT35\package\bin\x64\Release_Static >nul
echo F | xcopy /v WinSCard-x3U4.dll ..\..\..\BDASpecial-IT35\package\bin\x64\Release_Static\WinSCard.dll >nul
echo D | xcopy /v x3U4Remocon.tvtp ..\..\..\BDASpecial-IT35\package\bin\x64\Release_Static >nul
echo D | xcopy /v DD.dll ..\..\..\BDASpecial-DD\package\bin\x64\Release_Static >nul
echo D | xcopy /v LWire.dll ..\..\..\BDASpecial-LWire\package\bin\x64\Release_Static >nul

cd ..\..
copy /v doc package\bin >nul
for /f "usebackq tokens=*" %%i in (`git rev-parse --short HEAD`) do set hash=%%i
"%ProgramFiles%\7-Zip\7z.exe" a "package\BonDriver_BDA_%hash%.7z" .\package\bin\* -mx=9 -ms=on -myx=9

cd ..\BDASpecial-PlexPX
copy /v doc package\bin >nul
for /f "usebackq tokens=*" %%i in (`git rev-parse --short HEAD`) do set hash=%%i
"%ProgramFiles%\7-Zip\7z.exe" a "package\BDASpecial-PlexPX_%hash%.7z" .\package\bin\* -mx=9 -ms=on -myx=9

cd ..\BDASpecial-IT35
copy /v doc package\bin >nul
copy /v doc\WinSCard-x3U4 package\bin >nul
copy /v doc\x3U4Remocon package\bin >nul
for /f "usebackq tokens=*" %%i in (`git rev-parse --short HEAD`) do set hash=%%i
"%ProgramFiles%\7-Zip\7z.exe" a "package\BDASpecial-IT35_%hash%.7z" .\package\bin\* -mx=9 -ms=on -myx=9

cd ..\BDASpecial-DD
copy /v doc package\bin >nul
for /f "usebackq tokens=*" %%i in (`git rev-parse --short HEAD`) do set hash=%%i
"%ProgramFiles%\7-Zip\7z.exe" a "package\BDASpecial-DD_%hash%.7z" .\package\bin\* -mx=9 -ms=on -myx=9

cd ..\BDASpecial-LWire
copy /v doc package\bin >nul
for /f "usebackq tokens=*" %%i in (`git rev-parse --short HEAD`) do set hash=%%i
"%ProgramFiles%\7-Zip\7z.exe" a "package\BDASpecial-LWire_%hash%.7z" .\package\bin\* -mx=9 -ms=on -myx=9

pause

使い方

バッチファイルをダブルクリックすると処理が始まります。

バッチファイルと同じフォルダにある BonDriver_BDA\package と BDASpecial-~\package に出力されます。

Release-XP・Release-XP_Staticのビルド

プラットフォームツールセットv141_xpが必要です。

@echo off
cd /d %~dp0

git -C BonDriver_BDA pull || git clone --recursive https://github.com/radi-sh/BonDriver_BDA.git
git -C BDASpecial-PlexPX pull || git clone --recursive https://github.com/radi-sh/BDASpecial-PlexPX.git
git -C Rijndael4plex pull || git clone https://github.com/radi-sh/Rijndael4plex.git
git -C BDASpecial-IT35 pull || git clone --recursive https://github.com/radi-sh/BDASpecial-IT35.git
git -C BDASpecial-DD pull || git clone --recursive https://github.com/radi-sh/BDASpecial-DD.git
git -C BDASpecial-LWire pull || git clone --recursive https://github.com/radi-sh/BDASpecial-LWire.git

if exist BonDriver_BDA\BdaSpecials\PlexPX rd /s /q BonDriver_BDA\BdaSpecials\PlexPX
if exist BonDriver_BDA\aes rd /s /q BonDriver_BDA\aes
if exist BonDriver_BDA\BdaSpecials\IT35 rd /s /q BonDriver_BDA\BdaSpecials\IT35
if exist BonDriver_BDA\CardReader rd /s /q BonDriver_BDA\CardReader
if exist BonDriver_BDA\BdaSpecials\DD rd /s /q BonDriver_BDA\BdaSpecials\DD
if exist BonDriver_BDA\BdaSpecials\LWire rd /s /q BonDriver_BDA\BdaSpecials\LWire

xcopy /e /v BDASpecial-PlexPX\BdaSpecials BonDriver_BDA\BdaSpecials >nul
xcopy /i /v Rijndael4plex\aes BonDriver_BDA\aes >nul
xcopy /e /v BDASpecial-IT35\BdaSpecials BonDriver_BDA\BdaSpecials >nul
xcopy /i /v BDASpecial-IT35\CardReader BonDriver_BDA\CardReader >nul
xcopy /e /v BDASpecial-DD\BdaSpecials BonDriver_BDA\BdaSpecials >nul
xcopy /e /v BDASpecial-LWire\BdaSpecials BonDriver_BDA\BdaSpecials >nul

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

call "%InstallDir%\Common7\Tools\VsDevCmd.bat" -no_logo

cd BonDriver_BDA
MSBuild BonDriver_BDA.sln /nologo /m /t:Rebuild /p:Configuration=Release;Platform=Win32
if errorlevel 1 exit /b 1
MSBuild BonDriver_BDA.sln /nologo /m /t:Rebuild /p:Configuration=Release;Platform=x64
if errorlevel 1 exit /b 1
MSBuild BonDriver_BDA.sln /nologo /m /t:Rebuild /p:Configuration=Release_Static;Platform=Win32
if errorlevel 1 exit /b 1
MSBuild BonDriver_BDA.sln /nologo /m /t:Rebuild /p:Configuration=Release_Static;Platform=x64
if errorlevel 1 exit /b 1
MSBuild BonDriver_BDA.sln /nologo /m /t:Rebuild /p:Configuration=Release-XP;Platform=Win32
if errorlevel 1 exit /b 1
MSBuild BonDriver_BDA.sln /nologo /m /t:Rebuild /p:Configuration=Release-XP;Platform=x64
if errorlevel 1 exit /b 1
MSBuild BonDriver_BDA.sln /nologo /m /t:Rebuild /p:Configuration=Release-XP_Static;Platform=Win32
if errorlevel 1 exit /b 1
MSBuild BonDriver_BDA.sln /nologo /m /t:Rebuild /p:Configuration=Release-XP_Static;Platform=x64
if errorlevel 1 exit /b 1

cd ..
if exist BonDriver_BDA\package\bin rd /s /q BonDriver_BDA\package\bin
if exist BDASpecial-PlexPX\package\bin rd /s /q BDASpecial-PlexPX\package\bin
if exist BDASpecial-IT35\package\bin rd /s /q BDASpecial-IT35\package\bin
if exist BDASpecial-DD\package\bin rd /s /q BDASpecial-DD\package\bin
if exist BDASpecial-LWire\package\bin rd /s /q BDASpecial-LWire\package\bin

cd BonDriver_BDA\Win32\Release
echo D | xcopy /v BonDriver_BDA.dll ..\..\package\bin\x86\Release >nul
echo D | xcopy /v DVBWorld.dll ..\..\package\bin\x86\Release >nul
echo D | xcopy /v TBS.dll ..\..\package\bin\x86\Release >nul
echo D | xcopy /v PlexPX.dll ..\..\..\BDASpecial-PlexPX\package\bin\x86\Release >nul
echo D | xcopy /v IT35.dll ..\..\..\BDASpecial-IT35\package\bin\x86\Release >nul
echo F | xcopy /v WinSCard-x3U4.dll ..\..\..\BDASpecial-IT35\package\bin\x86\Release\WinSCard.dll >nul
echo D | xcopy /v x3U4Remocon.tvtp ..\..\..\BDASpecial-IT35\package\bin\x86\Release >nul
echo D | xcopy /v DD.dll ..\..\..\BDASpecial-DD\package\bin\x86\Release >nul
echo D | xcopy /v LWire.dll ..\..\..\BDASpecial-LWire\package\bin\x86\Release >nul

cd ..\Release_Static
echo D | xcopy /v BonDriver_BDA.dll ..\..\package\bin\x86\Release_Static >nul
echo D | xcopy /v DVBWorld.dll ..\..\package\bin\x86\Release_Static >nul
echo D | xcopy /v TBS.dll ..\..\package\bin\x86\Release_Static >nul
echo D | xcopy /v PlexPX.dll ..\..\..\BDASpecial-PlexPX\package\bin\x86\Release_Static >nul
echo D | xcopy /v IT35.dll ..\..\..\BDASpecial-IT35\package\bin\x86\Release_Static >nul
echo F | xcopy /v WinSCard-x3U4.dll ..\..\..\BDASpecial-IT35\package\bin\x86\Release_Static\WinSCard.dll >nul
echo D | xcopy /v x3U4Remocon.tvtp ..\..\..\BDASpecial-IT35\package\bin\x86\Release_Static >nul
echo D | xcopy /v DD.dll ..\..\..\BDASpecial-DD\package\bin\x86\Release_Static >nul
echo D | xcopy /v LWire.dll ..\..\..\BDASpecial-LWire\package\bin\x86\Release_Static >nul

cd ..\Release-XP
echo D | xcopy /v BonDriver_BDA.dll ..\..\package\bin\x86\Release-XP >nul
echo D | xcopy /v DVBWorld.dll ..\..\package\bin\x86\Release-XP >nul
echo D | xcopy /v TBS.dll ..\..\package\bin\x86\Release-XP >nul
echo D | xcopy /v PlexPX.dll ..\..\..\BDASpecial-PlexPX\package\bin\x86\Release-XP >nul
echo D | xcopy /v IT35.dll ..\..\..\BDASpecial-IT35\package\bin\x86\Release-XP >nul
echo F | xcopy /v WinSCard-x3U4.dll ..\..\..\BDASpecial-IT35\package\bin\x86\Release-XP\WinSCard.dll >nul
echo D | xcopy /v x3U4Remocon.tvtp ..\..\..\BDASpecial-IT35\package\bin\x86\Release-XP >nul
echo D | xcopy /v DD.dll ..\..\..\BDASpecial-DD\package\bin\x86\Release-XP >nul
echo D | xcopy /v LWire.dll ..\..\..\BDASpecial-LWire\package\bin\x86\Release-XP >nul

cd ..\Release-XP_Static
echo D | xcopy /v BonDriver_BDA.dll ..\..\package\bin\x86\Release-XP_Static >nul
echo D | xcopy /v DVBWorld.dll ..\..\package\bin\x86\Release-XP_Static >nul
echo D | xcopy /v TBS.dll ..\..\package\bin\x86\Release-XP_Static >nul
echo D | xcopy /v PlexPX.dll ..\..\..\BDASpecial-PlexPX\package\bin\x86\Release-XP_Static >nul
echo D | xcopy /v IT35.dll ..\..\..\BDASpecial-IT35\package\bin\x86\Release-XP_Static >nul
echo F | xcopy /v WinSCard-x3U4.dll ..\..\..\BDASpecial-IT35\package\bin\x86\Release-XP_Static\WinSCard.dll >nul
echo D | xcopy /v x3U4Remocon.tvtp ..\..\..\BDASpecial-IT35\package\bin\x86\Release-XP_Static >nul
echo D | xcopy /v DD.dll ..\..\..\BDASpecial-DD\package\bin\x86\Release-XP_Static >nul
echo D | xcopy /v LWire.dll ..\..\..\BDASpecial-LWire\package\bin\x86\Release-XP_Static >nul

cd ..\..\x64\Release
echo D | xcopy /v BonDriver_BDA.dll ..\..\package\bin\x64\Release >nul
echo D | xcopy /v DVBWorld.dll ..\..\package\bin\x64\Release >nul
echo D | xcopy /v TBS.dll ..\..\package\bin\x64\Release >nul
echo D | xcopy /v PlexPX.dll ..\..\..\BDASpecial-PlexPX\package\bin\x64\Release >nul
echo D | xcopy /v IT35.dll ..\..\..\BDASpecial-IT35\package\bin\x64\Release >nul
echo F | xcopy /v WinSCard-x3U4.dll ..\..\..\BDASpecial-IT35\package\bin\x64\Release\WinSCard.dll >nul
echo D | xcopy /v x3U4Remocon.tvtp ..\..\..\BDASpecial-IT35\package\bin\x64\Release >nul
echo D | xcopy /v DD.dll ..\..\..\BDASpecial-DD\package\bin\x64\Release >nul
echo D | xcopy /v LWire.dll ..\..\..\BDASpecial-LWire\package\bin\x64\Release >nul

cd ..\Release_Static
echo D | xcopy /v BonDriver_BDA.dll ..\..\package\bin\x64\Release_Static >nul
echo D | xcopy /v DVBWorld.dll ..\..\package\bin\x64\Release_Static >nul
echo D | xcopy /v TBS.dll ..\..\package\bin\x64\Release_Static >nul
echo D | xcopy /v PlexPX.dll ..\..\..\BDASpecial-PlexPX\package\bin\x64\Release_Static >nul
echo D | xcopy /v IT35.dll ..\..\..\BDASpecial-IT35\package\bin\x64\Release_Static >nul
echo F | xcopy /v WinSCard-x3U4.dll ..\..\..\BDASpecial-IT35\package\bin\x64\Release_Static\WinSCard.dll >nul
echo D | xcopy /v x3U4Remocon.tvtp ..\..\..\BDASpecial-IT35\package\bin\x64\Release_Static >nul
echo D | xcopy /v DD.dll ..\..\..\BDASpecial-DD\package\bin\x64\Release_Static >nul
echo D | xcopy /v LWire.dll ..\..\..\BDASpecial-LWire\package\bin\x64\Release_Static >nul

cd ..\Release-XP
echo D | xcopy /v BonDriver_BDA.dll ..\..\package\bin\x64\Release-XP >nul
echo D | xcopy /v DVBWorld.dll ..\..\package\bin\x64\Release-XP >nul
echo D | xcopy /v TBS.dll ..\..\package\bin\x64\Release-XP >nul
echo D | xcopy /v PlexPX.dll ..\..\..\BDASpecial-PlexPX\package\bin\x64\Release-XP >nul
echo D | xcopy /v IT35.dll ..\..\..\BDASpecial-IT35\package\bin\x64\Release-XP >nul
echo F | xcopy /v WinSCard-x3U4.dll ..\..\..\BDASpecial-IT35\package\bin\x64\Release-XP\WinSCard.dll >nul
echo D | xcopy /v x3U4Remocon.tvtp ..\..\..\BDASpecial-IT35\package\bin\x64\Release-XP >nul
echo D | xcopy /v DD.dll ..\..\..\BDASpecial-DD\package\bin\x64\Release-XP >nul
echo D | xcopy /v LWire.dll ..\..\..\BDASpecial-LWire\package\bin\x64\Release-XP >nul

cd ..\Release-XP_Static
echo D | xcopy /v BonDriver_BDA.dll ..\..\package\bin\x64\Release-XP_Static >nul
echo D | xcopy /v DVBWorld.dll ..\..\package\bin\x64\Release-XP_Static >nul
echo D | xcopy /v TBS.dll ..\..\package\bin\x64\Release-XP_Static >nul
echo D | xcopy /v PlexPX.dll ..\..\..\BDASpecial-PlexPX\package\bin\x64\Release-XP_Static >nul
echo D | xcopy /v IT35.dll ..\..\..\BDASpecial-IT35\package\bin\x64\Release-XP_Static >nul
echo F | xcopy /v WinSCard-x3U4.dll ..\..\..\BDASpecial-IT35\package\bin\x64\Release-XP_Static\WinSCard.dll >nul
echo D | xcopy /v x3U4Remocon.tvtp ..\..\..\BDASpecial-IT35\package\bin\x64\Release-XP_Static >nul
echo D | xcopy /v DD.dll ..\..\..\BDASpecial-DD\package\bin\x64\Release-XP_Static >nul
echo D | xcopy /v LWire.dll ..\..\..\BDASpecial-LWire\package\bin\x64\Release-XP_Static >nul

cd ..\..
copy /v doc package\bin >nul
for /f "usebackq tokens=*" %%i in (`git rev-parse --short HEAD`) do set hash=%%i
"%ProgramFiles%\7-Zip\7z.exe" a "package\BonDriver_BDA_%hash%.7z" .\package\bin\* -mx=9 -ms=on -myx=9

cd ..\BDASpecial-PlexPX
copy /v doc package\bin >nul
for /f "usebackq tokens=*" %%i in (`git rev-parse --short HEAD`) do set hash=%%i
"%ProgramFiles%\7-Zip\7z.exe" a "package\BDASpecial-PlexPX_%hash%.7z" .\package\bin\* -mx=9 -ms=on -myx=9

cd ..\BDASpecial-IT35
copy /v doc package\bin >nul
copy /v doc\WinSCard-x3U4 package\bin >nul
copy /v doc\x3U4Remocon package\bin >nul
for /f "usebackq tokens=*" %%i in (`git rev-parse --short HEAD`) do set hash=%%i
"%ProgramFiles%\7-Zip\7z.exe" a "package\BDASpecial-IT35_%hash%.7z" .\package\bin\* -mx=9 -ms=on -myx=9

cd ..\BDASpecial-DD
copy /v doc package\bin >nul
for /f "usebackq tokens=*" %%i in (`git rev-parse --short HEAD`) do set hash=%%i
"%ProgramFiles%\7-Zip\7z.exe" a "package\BDASpecial-DD_%hash%.7z" .\package\bin\* -mx=9 -ms=on -myx=9

cd ..\BDASpecial-LWire
copy /v doc package\bin >nul
for /f "usebackq tokens=*" %%i in (`git rev-parse --short HEAD`) do set hash=%%i
"%ProgramFiles%\7-Zip\7z.exe" a "package\BDASpecial-LWire_%hash%.7z" .\package\bin\* -mx=9 -ms=on -myx=9

pause

コメント

タイトルとURLをコピーしました