-
Notifications
You must be signed in to change notification settings - Fork 4
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
21 changed files
with
119 additions
and
188 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
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
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,51 +1,15 @@ | ||
@echo off | ||
setlocal | ||
|
||
call clean.cmd | ||
|
||
set vc="%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" | ||
if exist %vc% goto :build | ||
set vc="%VS150COMNTOOLS%..\..\VC\Auxiliary\Build\vcvarsall.bat" | ||
if exist %vc% goto :build | ||
echo Microsoft Visual C++ 2015/2017 is missing. Please go to http://www.visualstudio.com/ and install free Community edition. | ||
exit /b 1 | ||
|
||
:build | ||
echo Building... | ||
call %vc% x86 | ||
msbuild Localization.sln /v:m /t:Rebuild /p:Configuration=Release /p:Platform=Win32 | ||
if exist Win32\release\exe2po.exe goto pack | ||
echo Binary file is missing. Compile project first please. | ||
exit /b 1 | ||
|
||
:pack | ||
echo. | ||
echo Detecting 7-Zip... | ||
set zip="%ProgramFiles%\7-Zip\7z.exe" | ||
if exist %zip% goto zip | ||
set zip="%ProgramFiles(x86)%\7-Zip\7z.exe" | ||
if exist %zip% goto zip | ||
set zip="%ProgramW6432%\7-Zip\7z.exe" | ||
if exist %zip% goto zip | ||
echo The 7-Zip utility is missing. Please go to http://www.7-zip.org/ and install 7-Zip. | ||
exit /b 1 | ||
|
||
:zip | ||
echo. | ||
echo Packing by 7-Zip: %zip%... | ||
for /F "tokens=3" %%i in ( 'findstr ProductVersion exe2po\exe2po.rc' ) do set version=%%~i | ||
md "..\redist" 2>nul: | ||
set dst="%CD%\..\redist\po-localization-%version%.zip" | ||
del %dst% 2>nul: | ||
cd exe2po | ||
%zip% a -tzip -mx9 -mm=Deflate64 -mpass=15 -stl %dst% gpl-2.0.txt | ||
cd ..\src | ||
%zip% a -tzip -mx9 -mm=Deflate64 -mpass=15 -stl %dst% lgpl-2.1.txt Localization.h Localization.cpp COMPRESS.EXE | ||
cd ..\Win32\release | ||
%zip% a -tzip -mx9 -mm=Deflate64 -mpass=15 -stl %dst% exe2po.exe | ||
cd ..\.. | ||
%zip% a -tzip -mx9 -mm=Deflate64 -mpass=15 -stl -r -xr!*.user -xr!*.aps -xr!*.p_ -xr!win32 -xr!x64 %dst% sample ReadMe.txt *.reg | ||
echo. | ||
|
||
echo Done. | ||
exit /b 0 | ||
set "cur=%cd%\" | ||
pushd "%~dp0" | ||
for /F "tokens=3" %%i in ( 'findstr ProductVersion %~dp0exe2po\exe2po.rc' ) do set "version=%%~i" | ||
set "dst=%cur%po-localization-%version%.zip" | ||
echo Packing %dst%... | ||
del "%dst%" 2>nul | ||
rd /q /s sample\Win32\ 2>nul | ||
rd /q /s sample\x64\ 2>nul | ||
del sample\*.user 2>nul | ||
del sample\*.aps 2>nul | ||
del sample\res\*.p_ 2>nul | ||
powershell -Command "& { Compress-Archive -Path '%cur%exe2po.exe','%cur%sample.exe',ReadMe*,LICENSE,*.reg,src\*,sample\ -DestinationPath '%dst%' }" | ||
popd |
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 |
---|---|---|
|
@@ -3,9 +3,9 @@ | |
|
||
/* | ||
This file is part of EXE to PO file converter (EXE2PO) | ||
https://github.com/raspopov/po-localization | ||
https://www.cherubicsoft.com/en/projects/po-localization/ | ||
Copyright (C) 2011-2018 Nikolay Raspopov <[email protected]> | ||
Copyright (C) 2011-2023 Nikolay Raspopov <[email protected]> | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
|
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
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
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 |
---|---|---|
|
@@ -3,9 +3,9 @@ | |
|
||
/* | ||
This file is part of EXE to PO file converter (EXE2PO) | ||
https://github.com/raspopov/po-localization | ||
https://www.cherubicsoft.com/en/projects/po-localization/ | ||
Copyright (C) 2011-2018 Nikolay Raspopov <[email protected]> | ||
Copyright (C) 2011-2023 Nikolay Raspopov <[email protected]> | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
|
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,8 +1,8 @@ | ||
/* | ||
This file is part of EXE to PO file converter (EXE2PO) | ||
https://github.com/raspopov/po-localization | ||
https://www.cherubicsoft.com/en/projects/po-localization/ | ||
Copyright (C) 2011-2018 Nikolay Raspopov <[email protected]> | ||
Copyright (C) 2011-2023 Nikolay Raspopov <[email protected]> | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
|
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.