mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-21 18:52:36 +01:00
parent
a9d737aff5
commit
de76224637
34
build.bat
34
build.bat
@ -180,7 +180,7 @@ EXIT /B
|
|||||||
TITLE Creating ZIP archive with 7-Zip...
|
TITLE Creating ZIP archive with 7-Zip...
|
||||||
ECHO.
|
ECHO.
|
||||||
ECHO Creating ZIP archive with 7-Zip...
|
ECHO Creating ZIP archive with 7-Zip...
|
||||||
PUSHD "src\ui\bin\Release"
|
PUSHD "src\ui\bin\Release\net48"
|
||||||
IF EXIST "temp_zip" RD /S /Q "temp_zip"
|
IF EXIST "temp_zip" RD /S /Q "temp_zip"
|
||||||
IF NOT EXIST "temp_zip" MD "temp_zip"
|
IF NOT EXIST "temp_zip" MD "temp_zip"
|
||||||
IF NOT EXIST "temp_zip\Languages" MD "temp_zip\Languages"
|
IF NOT EXIST "temp_zip\Languages" MD "temp_zip\Languages"
|
||||||
@ -198,9 +198,9 @@ IF NOT EXIST "temp_zip\Icons\Black" MD "temp_zip\Icons\Black"
|
|||||||
IF NOT EXIST "temp_zip\Icons\Black\VideoPlayer" MD "temp_zip\Icons\Black\VideoPlayer"
|
IF NOT EXIST "temp_zip\Icons\Black\VideoPlayer" MD "temp_zip\Icons\Black\VideoPlayer"
|
||||||
|
|
||||||
ECHO.
|
ECHO.
|
||||||
COPY /Y /V "..\..\..\..\LICENSE.txt" "temp_zip\"
|
COPY /Y /V "..\..\..\..\..\LICENSE.txt" "temp_zip\"
|
||||||
COPY /Y /V "..\..\..\..\Changelog.txt" "temp_zip\"
|
COPY /Y /V "..\..\..\..\..\Changelog.txt" "temp_zip\"
|
||||||
COPY /Y /V "..\..\..\..\preview.mkv" "temp_zip\"
|
COPY /Y /V "..\..\..\..\..\preview.mkv" "temp_zip\"
|
||||||
COPY /Y /V "Hunspellx86.dll" "temp_zip\"
|
COPY /Y /V "Hunspellx86.dll" "temp_zip\"
|
||||||
COPY /Y /V "Hunspellx64.dll" "temp_zip\"
|
COPY /Y /V "Hunspellx64.dll" "temp_zip\"
|
||||||
COPY /Y /V "libse.dll" "temp_zip\"
|
COPY /Y /V "libse.dll" "temp_zip\"
|
||||||
@ -209,7 +209,7 @@ COPY /Y /V "NHunspell.dll" "temp_zip\"
|
|||||||
COPY /Y /V "UtfUnknown.dll" "temp_zip\"
|
COPY /Y /V "UtfUnknown.dll" "temp_zip\"
|
||||||
COPY /Y /V "Vosk.dll" "temp_zip\"
|
COPY /Y /V "Vosk.dll" "temp_zip\"
|
||||||
COPY /Y /V "NCalc.dll" "temp_zip\"
|
COPY /Y /V "NCalc.dll" "temp_zip\"
|
||||||
COPY /Y /V "..\..\DLLs\Interop.QuartzTypeLib.dll" "temp_zip\"
|
COPY /Y /V "..\..\..\DLLs\Interop.QuartzTypeLib.dll" "temp_zip\"
|
||||||
COPY /Y /V "System.Net.Http.Extensions.dll" "temp_zip\"
|
COPY /Y /V "System.Net.Http.Extensions.dll" "temp_zip\"
|
||||||
COPY /Y /V "Newtonsoft.Json.dll" "temp_zip\"
|
COPY /Y /V "Newtonsoft.Json.dll" "temp_zip\"
|
||||||
COPY /Y /V "System.Net.Http.Primitives.dll" "temp_zip\"
|
COPY /Y /V "System.Net.Http.Primitives.dll" "temp_zip\"
|
||||||
@ -218,18 +218,18 @@ COPY /Y /V "NAudio.WinMM.dll" "temp_zip\"
|
|||||||
COPY /Y /V "Microsoft.Win32.Registry.dll" "temp_zip\"
|
COPY /Y /V "Microsoft.Win32.Registry.dll" "temp_zip\"
|
||||||
COPY /Y /V "SubtitleEdit.exe" "temp_zip\"
|
COPY /Y /V "SubtitleEdit.exe" "temp_zip\"
|
||||||
COPY /Y /V "Languages\*.xml" "temp_zip\Languages\"
|
COPY /Y /V "Languages\*.xml" "temp_zip\Languages\"
|
||||||
COPY /Y /V "..\..\..\..\Dictionaries\*.*" "temp_zip\Dictionaries\"
|
COPY /Y /V "..\..\..\..\..\Dictionaries\*.*" "temp_zip\Dictionaries\"
|
||||||
COPY /Y /V "..\..\..\..\Ocr\*.*" "temp_zip\Ocr\"
|
COPY /Y /V "..\..\..\..\..\Ocr\*.*" "temp_zip\Ocr\"
|
||||||
XCOPY /Y /V "..\..\..\..\Tesseract302\*.*" "temp_zip\Tesseract302\" /S
|
XCOPY /Y /V "..\..\..\..\..\Tesseract302\*.*" "temp_zip\Tesseract302\" /S
|
||||||
COPY /Y /V "..\..\..\..\Icons\*.ico" "temp_zip\Icons\"
|
COPY /Y /V "..\..\..\..\..\Icons\*.ico" "temp_zip\Icons\"
|
||||||
COPY /Y /V "..\..\..\..\Icons\DefaultTheme\*.png" "temp_zip\Icons\DefaultTheme"
|
COPY /Y /V "..\..\..\..\..\Icons\DefaultTheme\*.png" "temp_zip\Icons\DefaultTheme"
|
||||||
COPY /Y /V "..\..\..\..\Icons\DefaultTheme\VideoPlayer\*.png" "temp_zip\Icons\DefaultTheme\VideoPlayer"
|
COPY /Y /V "..\..\..\..\..\Icons\DefaultTheme\VideoPlayer\*.png" "temp_zip\Icons\DefaultTheme\VideoPlayer"
|
||||||
COPY /Y /V "..\..\..\..\Icons\DarkTheme\*.png" "temp_zip\Icons\DarkTheme"
|
COPY /Y /V "..\..\..\..\..\Icons\DarkTheme\*.png" "temp_zip\Icons\DarkTheme"
|
||||||
COPY /Y /V "..\..\..\..\Icons\DarkTheme\VideoPlayer\*.png" "temp_zip\Icons\DarkTheme\VideoPlayer"
|
COPY /Y /V "..\..\..\..\..\Icons\DarkTheme\VideoPlayer\*.png" "temp_zip\Icons\DarkTheme\VideoPlayer"
|
||||||
COPY /Y /V "..\..\..\..\Icons\Legacy\*.png" "temp_zip\Icons\Legacy"
|
COPY /Y /V "..\..\..\..\..\Icons\Legacy\*.png" "temp_zip\Icons\Legacy"
|
||||||
COPY /Y /V "..\..\..\..\Icons\Legacy\VideoPlayer\*.png" "temp_zip\Icons\Legacy\VideoPlayer"
|
COPY /Y /V "..\..\..\..\..\Icons\Legacy\VideoPlayer\*.png" "temp_zip\Icons\Legacy\VideoPlayer"
|
||||||
COPY /Y /V "..\..\..\..\Icons\Black\*.png" "temp_zip\Icons\Black"
|
COPY /Y /V "..\..\..\..\..\Icons\Black\*.png" "temp_zip\Icons\Black"
|
||||||
COPY /Y /V "..\..\..\..\Icons\Black\VideoPlayer\*.png" "temp_zip\Icons\Black\VideoPlayer"
|
COPY /Y /V "..\..\..\..\..\Icons\Black\VideoPlayer\*.png" "temp_zip\Icons\Black\VideoPlayer"
|
||||||
|
|
||||||
PUSHD "temp_zip"
|
PUSHD "temp_zip"
|
||||||
START "" /B /WAIT "%SEVENZIP%" a -tzip -mx=9 "SubtitleEdit-%VERSION%.zip" * >NUL
|
START "" /B /WAIT "%SEVENZIP%" a -tzip -mx=9 "SubtitleEdit-%VERSION%.zip" * >NUL
|
||||||
|
@ -154,7 +154,7 @@ EXIT /B
|
|||||||
TITLE Creating ZIP archive with 7-Zip...
|
TITLE Creating ZIP archive with 7-Zip...
|
||||||
ECHO.
|
ECHO.
|
||||||
ECHO Creating ZIP archive with 7-Zip...
|
ECHO Creating ZIP archive with 7-Zip...
|
||||||
PUSHD "src\ui\bin\Release"
|
PUSHD "src\ui\bin\Release\net48"
|
||||||
IF EXIST "temp_zip" RD /S /Q "temp_zip"
|
IF EXIST "temp_zip" RD /S /Q "temp_zip"
|
||||||
IF NOT EXIST "temp_zip" MD "temp_zip"
|
IF NOT EXIST "temp_zip" MD "temp_zip"
|
||||||
IF NOT EXIST "temp_zip\Languages" MD "temp_zip\Languages"
|
IF NOT EXIST "temp_zip\Languages" MD "temp_zip\Languages"
|
||||||
@ -172,9 +172,9 @@ IF NOT EXIST "temp_zip\Icons\Black" MD "temp_zip\Icons\Black"
|
|||||||
IF NOT EXIST "temp_zip\Icons\Black\VideoPlayer" MD "temp_zip\Icons\Black\VideoPlayer"
|
IF NOT EXIST "temp_zip\Icons\Black\VideoPlayer" MD "temp_zip\Icons\Black\VideoPlayer"
|
||||||
|
|
||||||
ECHO.
|
ECHO.
|
||||||
COPY /Y /V "..\..\..\..\LICENSE.txt" "temp_zip\"
|
COPY /Y /V "..\..\..\..\..\LICENSE.txt" "temp_zip\"
|
||||||
COPY /Y /V "..\..\..\..\Changelog.txt" "temp_zip\"
|
COPY /Y /V "..\..\..\..\..\Changelog.txt" "temp_zip\"
|
||||||
COPY /Y /V "..\..\..\..\preview.mkv" "temp_zip\"
|
COPY /Y /V "..\..\..\..\..\preview.mkv" "temp_zip\"
|
||||||
COPY /Y /V "Hunspellx86.dll" "temp_zip\"
|
COPY /Y /V "Hunspellx86.dll" "temp_zip\"
|
||||||
COPY /Y /V "Hunspellx64.dll" "temp_zip\"
|
COPY /Y /V "Hunspellx64.dll" "temp_zip\"
|
||||||
COPY /Y /V "libse.dll" "temp_zip\"
|
COPY /Y /V "libse.dll" "temp_zip\"
|
||||||
@ -183,7 +183,7 @@ COPY /Y /V "NHunspell.dll" "temp_zip\"
|
|||||||
COPY /Y /V "UtfUnknown.dll" "temp_zip\"
|
COPY /Y /V "UtfUnknown.dll" "temp_zip\"
|
||||||
COPY /Y /V "Vosk.dll" "temp_zip\"
|
COPY /Y /V "Vosk.dll" "temp_zip\"
|
||||||
COPY /Y /V "NCalc.dll" "temp_zip\"
|
COPY /Y /V "NCalc.dll" "temp_zip\"
|
||||||
COPY /Y /V "..\..\DLLs\Interop.QuartzTypeLib.dll" "temp_zip\"
|
COPY /Y /V "..\..\..\DLLs\Interop.QuartzTypeLib.dll" "temp_zip\"
|
||||||
COPY /Y /V "System.Net.Http.Extensions.dll" "temp_zip\"
|
COPY /Y /V "System.Net.Http.Extensions.dll" "temp_zip\"
|
||||||
COPY /Y /V "Newtonsoft.Json.dll" "temp_zip\"
|
COPY /Y /V "Newtonsoft.Json.dll" "temp_zip\"
|
||||||
COPY /Y /V "System.Net.Http.Primitives.dll" "temp_zip\"
|
COPY /Y /V "System.Net.Http.Primitives.dll" "temp_zip\"
|
||||||
@ -192,18 +192,18 @@ COPY /Y /V "NAudio.WinMM.dll" "temp_zip\"
|
|||||||
COPY /Y /V "Microsoft.Win32.Registry.dll" "temp_zip\"
|
COPY /Y /V "Microsoft.Win32.Registry.dll" "temp_zip\"
|
||||||
COPY /Y /V "SubtitleEdit.exe" "temp_zip\"
|
COPY /Y /V "SubtitleEdit.exe" "temp_zip\"
|
||||||
COPY /Y /V "Languages\*.xml" "temp_zip\Languages\"
|
COPY /Y /V "Languages\*.xml" "temp_zip\Languages\"
|
||||||
COPY /Y /V "..\..\..\..\Dictionaries\*.*" "temp_zip\Dictionaries\"
|
COPY /Y /V "..\..\..\..\..\Dictionaries\*.*" "temp_zip\Dictionaries\"
|
||||||
COPY /Y /V "..\..\..\..\Ocr\*.*" "temp_zip\Ocr\"
|
COPY /Y /V "..\..\..\..\..\Ocr\*.*" "temp_zip\Ocr\"
|
||||||
XCOPY /Y /V "..\..\..\..\Tesseract302\*.*" "temp_zip\Tesseract302\" /S
|
XCOPY /Y /V "..\..\..\..\..\Tesseract302\*.*" "temp_zip\Tesseract302\" /S
|
||||||
COPY /Y /V "..\..\..\..\Icons\*.ico" "temp_zip\Icons\"
|
COPY /Y /V "..\..\..\..\..\Icons\*.ico" "temp_zip\Icons\"
|
||||||
COPY /Y /V "..\..\..\..\Icons\DefaultTheme\*.png" "temp_zip\Icons\DefaultTheme"
|
COPY /Y /V "..\..\..\..\..\Icons\DefaultTheme\*.png" "temp_zip\Icons\DefaultTheme"
|
||||||
COPY /Y /V "..\..\..\..\Icons\DefaultTheme\VideoPlayer\*.png" "temp_zip\Icons\DefaultTheme\VideoPlayer"
|
COPY /Y /V "..\..\..\..\..\Icons\DefaultTheme\VideoPlayer\*.png" "temp_zip\Icons\DefaultTheme\VideoPlayer"
|
||||||
COPY /Y /V "..\..\..\..\Icons\DarkTheme\*.png" "temp_zip\Icons\DarkTheme"
|
COPY /Y /V "..\..\..\..\..\Icons\DarkTheme\*.png" "temp_zip\Icons\DarkTheme"
|
||||||
COPY /Y /V "..\..\..\..\Icons\DarkTheme\VideoPlayer\*.png" "temp_zip\Icons\DarkTheme\VideoPlayer"
|
COPY /Y /V "..\..\..\..\..\Icons\DarkTheme\VideoPlayer\*.png" "temp_zip\Icons\DarkTheme\VideoPlayer"
|
||||||
COPY /Y /V "..\..\..\..\Icons\Legacy\*.png" "temp_zip\Icons\Legacy"
|
COPY /Y /V "..\..\..\..\..\Icons\Legacy\*.png" "temp_zip\Icons\Legacy"
|
||||||
COPY /Y /V "..\..\..\..\Icons\Legacy\VideoPlayer\*.png" "temp_zip\Icons\Legacy\VideoPlayer"
|
COPY /Y /V "..\..\..\..\..\Icons\Legacy\VideoPlayer\*.png" "temp_zip\Icons\Legacy\VideoPlayer"
|
||||||
COPY /Y /V "..\..\..\..\Icons\Black\*.png" "temp_zip\Icons\Black"
|
COPY /Y /V "..\..\..\..\..\Icons\Black\*.png" "temp_zip\Icons\Black"
|
||||||
COPY /Y /V "..\..\..\..\Icons\Black\VideoPlayer\*.png" "temp_zip\Icons\Black\VideoPlayer"
|
COPY /Y /V "..\..\..\..\..\Icons\Black\VideoPlayer\*.png" "temp_zip\Icons\Black\VideoPlayer"
|
||||||
|
|
||||||
PUSHD "temp_zip"
|
PUSHD "temp_zip"
|
||||||
START "" /B /WAIT "%SEVENZIP%" a -tzip -mx=9 "SubtitleEditBeta.zip" * >NUL
|
START "" /B /WAIT "%SEVENZIP%" a -tzip -mx=9 "SubtitleEditBeta.zip" * >NUL
|
||||||
@ -211,7 +211,7 @@ IF %ERRORLEVEL% NEQ 0 GOTO EndWithError
|
|||||||
|
|
||||||
ECHO.
|
ECHO.
|
||||||
ECHO ZIP archive created successfully!
|
ECHO ZIP archive created successfully!
|
||||||
MOVE /Y "SubtitleEditBeta.zip" "..\..\..\..\..\SubtitleEditBeta" >NUL
|
MOVE /Y "SubtitleEditBeta.zip" "..\..\..\..\..\..\SubtitleEditBeta" >NUL
|
||||||
POPD
|
POPD
|
||||||
IF EXIST "temp_zip" RD /S /Q "temp_zip"
|
IF EXIST "temp_zip" RD /S /Q "temp_zip"
|
||||||
POPD
|
POPD
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
#define VerBuild
|
#define VerBuild
|
||||||
#define VerRevision
|
#define VerRevision
|
||||||
|
|
||||||
#define bindir "..\src\ui\bin\Release"
|
#define bindir "..\src\ui\bin\Release\net48"
|
||||||
|
|
||||||
#ifnexist bindir + "\SubtitleEdit.exe"
|
#ifnexist bindir + "\SubtitleEdit.exe"
|
||||||
#error Compile Subtitle Edit first
|
#error Compile Subtitle Edit first
|
||||||
|
Loading…
Reference in New Issue
Block a user