forked from ermig1979/AntiDupl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
1,025 additions
and
986 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
@echo off | ||
|
||
set RAR_EXE="C:\Program Files\WinRAR\WinRar.exe" | ||
if not exist %RAR_EXE% ( | ||
echo Execution file "%RAR_EXE%" is to exists! | ||
exit 1 | ||
) | ||
|
||
set ROOT_DIR=.. | ||
set RELEASE_DIR=%ROOT_DIR%\bin\Release | ||
set VERSION_FILE=%ROOT_DIR%\src\AntiDupl\version.txt | ||
|
||
if not exist %RELEASE_DIR% ( | ||
echo Can't find "%RELEASE_DIR%" directory! | ||
exit 0 | ||
) | ||
|
||
if not exist %VERSION_FILE% ( | ||
echo Can't find "%VERSION_FILE%" file! | ||
exit 0 | ||
) | ||
|
||
set VERSION= | ||
for /f "delims=" %%i in ('type %VERSION_FILE%') do set VERSION=%%i | ||
|
||
set OUT_DIR=%ROOT_DIR%\out\bin | ||
set TMP_DIR=%ROOT_DIR%\out\bin\AntiDupl.NET-%VERSION% | ||
|
||
if not exist %OUT_DIR% mkdir %OUT_DIR% | ||
|
||
if exist %TMP_DIR% ( | ||
echo Delete old files: | ||
erase %TMP_DIR%\* /q /s /f | ||
rmdir %TMP_DIR% /q /s | ||
) | ||
|
||
if not exist %TMP_DIR% mkdir %TMP_DIR% | ||
|
||
xcopy %RELEASE_DIR%\data\* %TMP_DIR%\data\* /y /i /s | ||
xcopy %RELEASE_DIR%\AntiDupl.NET.exe %TMP_DIR%\* /y /i /s | ||
xcopy %RELEASE_DIR%\AntiDupl32.dll %TMP_DIR%\* /y /i /s | ||
xcopy %RELEASE_DIR%\AntiDupl64.dll %TMP_DIR%\* /y /i /s | ||
|
||
erase %TMP_DIR%\data\resources\strings\English.xml /q /s /f | ||
erase %TMP_DIR%\data\resources\strings\Russian.xml /q /s /f | ||
|
||
::%RAR_EXE% a -ep1 -s -m5 -r -sfx %OUT_DIR%\AntiDupl.NET-%VERSION%.exe %TMP_DIR% | ||
%RAR_EXE% a -afzip -ep1 -r %OUT_DIR%\AntiDupl.NET-%VERSION%-alpha-v4.zip %TMP_DIR% | ||
@echo off | ||
|
||
set RAR_EXE="C:\Program Files\WinRAR\WinRar.exe" | ||
if not exist %RAR_EXE% ( | ||
echo Execution file "%RAR_EXE%" is to exists! | ||
exit 1 | ||
) | ||
|
||
set ROOT_DIR=.. | ||
set RELEASE_DIR=%ROOT_DIR%\bin\Release | ||
set VERSION_FILE=%ROOT_DIR%\src\AntiDupl\version.txt | ||
|
||
if not exist %RELEASE_DIR% ( | ||
echo Can't find "%RELEASE_DIR%" directory! | ||
exit 0 | ||
) | ||
|
||
if not exist %VERSION_FILE% ( | ||
echo Can't find "%VERSION_FILE%" file! | ||
exit 0 | ||
) | ||
|
||
set VERSION= | ||
for /f "delims=" %%i in ('type %VERSION_FILE%') do set VERSION=%%i | ||
|
||
set OUT_DIR=%ROOT_DIR%\out\bin | ||
set TMP_DIR=%ROOT_DIR%\out\bin\AntiDupl.NET-%VERSION% | ||
|
||
if not exist %OUT_DIR% mkdir %OUT_DIR% | ||
|
||
if exist %TMP_DIR% ( | ||
echo Delete old files: | ||
erase %TMP_DIR%\* /q /s /f | ||
rmdir %TMP_DIR% /q /s | ||
) | ||
|
||
if not exist %TMP_DIR% mkdir %TMP_DIR% | ||
|
||
xcopy %RELEASE_DIR%\data\* %TMP_DIR%\data\* /y /i /s | ||
xcopy %RELEASE_DIR%\AntiDupl.NET.exe %TMP_DIR%\* /y /i /s | ||
xcopy %RELEASE_DIR%\AntiDupl32.dll %TMP_DIR%\* /y /i /s | ||
xcopy %RELEASE_DIR%\AntiDupl64.dll %TMP_DIR%\* /y /i /s | ||
|
||
erase %TMP_DIR%\data\resources\strings\English.xml /q /s /f | ||
erase %TMP_DIR%\data\resources\strings\Russian.xml /q /s /f | ||
|
||
%RAR_EXE% a -ep1 -s -m5 -r -sfx %OUT_DIR%\AntiDupl.NET-%VERSION%.exe %TMP_DIR% | ||
::%RAR_EXE% a -afzip -ep1 -r %OUT_DIR%\AntiDupl.NET-%VERSION%.zip %TMP_DIR% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.