1echo off
2rem Script to deploy the windows package file
3rem Must be executed in the build directory of KLog
4rem***************************************************************************
5rem
6rem                         klogwincreatepacksage2.bat
7rem						  -------------------
8rem    begin                : jan 2021
9rem    copyright            : (C) 2021 by Jaime Robles
10rem    email                : jaime@robles.es
11rem ***************************************************************************
12rem/*****************************************************************************
13rem * This file is part of KLog.                                                *
14rem *                                                                           *
15rem *    KLog is free software: you can redistribute it and/or modify           *
16rem *    it under the terms of the GNU General Public License as published by   *
17rem *    the Free Software Foundation, either version 3 of the License, or      *
18rem *    (at your option) any later version.                                    *
19rem *                                                                           *
20rem *    KLog is distributed in the hope that it will be useful,                *
21rem *    but WITHOUT ANY WARRANTY; without even the implied warranty of         *
22rem *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
23rem *    GNU General Public License for more details.                           *
24rem *                                                                           *
25rem *    You should have received a copy of the GNU General Public License      *
26rem *    along with KLog.  If not, see <https://www.gnu.org/licenses/>.         *
27rem *                                                                           *
28rem *****************************************************************************/@echo off
29echo Setting up environment for Qt usage...
30set PATH=C:/Qt/5.15.2/mingw81_32/bin;C:/Qt/Tools/mingw810_32/bin;%PATH%
31cd ../src/
32rmdir /S /Q build
33rmdir /S /Q release
34rmdir /S /Q debug
35mingw32-make clean
36
37qmake src.pro
38mingw32-make
39mkdir release
40xcopy /Y /S /F build\target release
41windeployqt release\klog.exe
42copy ..\..\paquete\hamlibDLL\*.dll release
43:: The SSL DLLs must be included and must match the version that were used to build Qt.
44:: Check in main.cpp and uncomment the SSL line to see what is the version that was used.
45:: After knowing the version, the package can be obtained from: https://indy.fulgan.com/SSL/Archive/
46copy ..\..\paquete\openssl\*.dll release
47copy *.ico release
48copy AUTHORS release
49copy Changelog release
50copy NEWS release
51copy TODO release
52copy README release
53copy COPYING release
54copy gpl-3.0-standalone.html release
55rem cd ..\..
56
57
58
59