diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-09-06 10:22:30 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-09-06 10:22:30 +0000 |
commit | 98a94b4933280f1d9cfe9e8b7c8d704d063c3741 (patch) | |
tree | 5a64040cc73f6685fe1fdd8c87cef92b64e90315 /tools/installer_ng/Common/GenerateInnoGuiCompatScript.bat | |
parent | 0562a8528e465d22b81fde700b63699f35fcf5a7 (diff) |
Installer: Optimizations, 7z.exe added, created bath file for creating Inno setup compatible script that compiles without passing parameters to compiler
git-svn-id: http://svn.miranda-ng.org/main/trunk@5961 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'tools/installer_ng/Common/GenerateInnoGuiCompatScript.bat')
-rw-r--r-- | tools/installer_ng/Common/GenerateInnoGuiCompatScript.bat | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/tools/installer_ng/Common/GenerateInnoGuiCompatScript.bat b/tools/installer_ng/Common/GenerateInnoGuiCompatScript.bat new file mode 100644 index 0000000000..dc97c96507 --- /dev/null +++ b/tools/installer_ng/Common/GenerateInnoGuiCompatScript.bat @@ -0,0 +1,44 @@ +@echo off
+set GetVer=for /F "tokens=1,2,3 delims= " %%i in (build.no) do set MirVer=%%i.%%j.%%k
+set BomRem=http://miranda-ng.org/distr/installer/bom_remove.exe
+set BomAdd=http://miranda-ng.org/distr/installer/bom_add.exe
+for %%* in (.) do set InnoX=%%~n*
+rem Get version
+..\Tools\wget.exe -O build.no http://svn.miranda-ng.org/main/trunk/build/build.no
+%GetVer%
+del /F /Q build.no
+rem end
+
+rem Create Inno setup compatible script that compiles without passing parameters to compiler
+if %InnoX% == InnoNG_32 (
+ ..\Tools\wget.exe -O utf-8_32.vbs http://miranda-ng.org/distr/installer/utf-8_32.vbs
+ ..\Tools\wget.exe -O bom_remove.exe %BomRem%
+ ..\Tools\wget.exe -O bom_add.exe %BomAdd%
+ bom_remove.exe MirandaNG.iss
+ cscript utf-8_32.vbs
+ echo #define AppVer "%MirVer%" >> MirandaNG32.iss
+ echo.>> MirandaNG32.iss
+ type MirandaNG.iss >> MirandaNG32.iss
+ bom_add.exe MirandaNG.iss
+ del /f /q utf-8_32.vbs
+ del /f /q bom_remove.exe
+ del /f /q bom_add.exe
+) else if %InnoX% == InnoNG_64 (
+ ..\Tools\wget.exe -O utf-8_64.vbs http://miranda-ng.org/distr/installer/utf-8_64.vbs
+ ..\Tools\wget.exe -O bom_remove.exe %BomRem%
+ ..\Tools\wget.exe -O bom_add.exe %BomAdd%
+ bom_remove.exe MirandaNG.iss
+ cscript utf-8_64.vbs
+ echo #define AppVer "%MirVer%" >> MirandaNG64.iss
+ echo.>> MirandaNG64.iss
+ type MirandaNG.iss >> MirandaNG64.iss
+ bom_add.exe MirandaNG.iss
+ del /f /q utf-8_64.vbs
+ del /f /q bom_remove.exe
+ del /f /q bom_add.exe
+)
+rem end
+
+rem Delete bat file
+del "%~f0
+rem end
\ No newline at end of file |