From ee5144c76c09a6b192245efb88501c08d60fbb36 Mon Sep 17 00:00:00 2001 From: metamaker Date: Sun, 19 Jun 2016 19:25:27 +0300 Subject: [PATCH] Added scripts to copy wxWidgets dll into application dir and deploy application --- scripts/bin/Debug/install-contrib.bat | 9 +++++++++ scripts/bin/Release/install-contrib.bat | 9 +++++++++ scripts/bin/Release/pack-release.bat | 15 +++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 scripts/bin/Debug/install-contrib.bat create mode 100644 scripts/bin/Release/install-contrib.bat create mode 100644 scripts/bin/Release/pack-release.bat diff --git a/scripts/bin/Debug/install-contrib.bat b/scripts/bin/Debug/install-contrib.bat new file mode 100644 index 0000000..2e37622 --- /dev/null +++ b/scripts/bin/Debug/install-contrib.bat @@ -0,0 +1,9 @@ +@echo off +mkdir ru +copy "E:\Projects\Workroom\trachecker\languages\ru" ru +copy "E:\Projects\Libs\Trunk\C++\wxWidgets\lib\vc_dll\wxbase310ud_vc_custom.dll" +copy "E:\Projects\Libs\Trunk\C++\wxWidgets\lib\vc_dll\wxbase310ud_vc_custom.pdb" +copy "E:\Projects\Libs\Trunk\C++\wxWidgets\lib\vc_dll\wxmsw310ud_core_vc_custom.dll" +copy "E:\Projects\Libs\Trunk\C++\wxWidgets\lib\vc_dll\wxmsw310ud_core_vc_custom.pdb" +copy "E:\Projects\Libs\Trunk\C++\wxWidgets\lib\vc_dll\wxmsw310ud_stc_vc_custom.dll" +copy "E:\Projects\Libs\Trunk\C++\wxWidgets\lib\vc_dll\wxmsw310ud_stc_vc_custom.pdb" diff --git a/scripts/bin/Release/install-contrib.bat b/scripts/bin/Release/install-contrib.bat new file mode 100644 index 0000000..9aecfb0 --- /dev/null +++ b/scripts/bin/Release/install-contrib.bat @@ -0,0 +1,9 @@ +@echo off +mkdir ru +copy "E:\Projects\Workroom\trachecker\languages\ru" ru +copy "E:\Projects\Libs\Trunk\C++\wxWidgets\lib\vc_dll\wxbase310u_vc_custom.dll" +copy "E:\Projects\Libs\Trunk\C++\wxWidgets\lib\vc_dll\wxbase310u_vc_custom.pdb" +copy "E:\Projects\Libs\Trunk\C++\wxWidgets\lib\vc_dll\wxmsw310u_core_vc_custom.dll" +copy "E:\Projects\Libs\Trunk\C++\wxWidgets\lib\vc_dll\wxmsw310u_core_vc_custom.pdb" +copy "E:\Projects\Libs\Trunk\C++\wxWidgets\lib\vc_dll\wxmsw310u_stc_vc_custom.dll" +copy "E:\Projects\Libs\Trunk\C++\wxWidgets\lib\vc_dll\wxmsw310u_stc_vc_custom.pdb" diff --git a/scripts/bin/Release/pack-release.bat b/scripts/bin/Release/pack-release.bat new file mode 100644 index 0000000..854fe49 --- /dev/null +++ b/scripts/bin/Release/pack-release.bat @@ -0,0 +1,15 @@ + +@echo off + +REM Format today's date to DAY-MONTH-YEAR format +SET year=%date:~-4% +SET month=%date:~3,2% +IF "%month:~0,1%" == " " SET month=0%month:~1,1% +SET day=%date:~0,2% +IF "%day:~0,1%" == " " SET day=0%day:~1,1% + +REM Pack today's build to archive +SET BUILD_DATE=%day%-%month%-%year% +SET ARCHIVE_NAME=TRAChecker_%BUILD_DATE%.zip + +"C:\Program Files\7-Zip\7z.exe" a %ARCHIVE_NAME% TRAChecker.exe wxbase310u_vc_custom.dll wxmsw310u_core_vc_custom.dll wxmsw310u_stc_vc_custom.dll ru/application.po ru/application.mo