2021-04-17 12:54:14 +00:00
|
|
|
echo off
|
|
|
|
rem Script to deploy the windows package file
|
|
|
|
rem Must be executed in the build directory of KLog
|
2022-10-06 10:10:55 +00:00
|
|
|
rem ***************************************************************************
|
2021-04-17 12:54:14 +00:00
|
|
|
rem
|
2024-01-10 15:23:53 +00:00
|
|
|
rem win64-create-package.bat
|
2021-04-17 12:54:14 +00:00
|
|
|
rem -------------------
|
|
|
|
rem begin : jan 2021
|
|
|
|
rem copyright : (C) 2021 by Jaime Robles
|
|
|
|
rem email : jaime@robles.es
|
|
|
|
rem ***************************************************************************
|
2022-10-06 10:10:55 +00:00
|
|
|
rem /*****************************************************************************
|
2021-04-17 12:54:14 +00:00
|
|
|
rem * This file is part of KLog. *
|
|
|
|
rem * *
|
|
|
|
rem * KLog is free software: you can redistribute it and/or modify *
|
|
|
|
rem * it under the terms of the GNU General Public License as published by *
|
|
|
|
rem * the Free Software Foundation, either version 3 of the License, or *
|
|
|
|
rem * (at your option) any later version. *
|
|
|
|
rem * *
|
|
|
|
rem * KLog is distributed in the hope that it will be useful, *
|
|
|
|
rem * but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
rem * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
rem * GNU General Public License for more details. *
|
|
|
|
rem * *
|
|
|
|
rem * You should have received a copy of the GNU General Public License *
|
|
|
|
rem * along with KLog. If not, see <https://www.gnu.org/licenses/>. *
|
|
|
|
rem * *
|
|
|
|
rem *****************************************************************************/@echo off
|
2021-03-28 09:24:00 +00:00
|
|
|
echo Setting up environment for Qt usage...
|
2022-10-16 14:13:16 +00:00
|
|
|
set KLOGDEVELVERSION=1
|
2023-10-27 22:42:59 +00:00
|
|
|
set PATH=%PATH%;C:\Qt\5.15.2\mingw81_64\bin;C:\Qt\Tools\mingw810_64\bin;
|
2024-01-22 20:10:43 +00:00
|
|
|
set PATH=%PATH%;C:\Program Files\InstallBuilder Enterprise 23.10.1\bin;
|
2024-01-13 14:41:24 +00:00
|
|
|
del ..\devscripts\klog-*win64*.exe
|
2024-01-10 15:23:53 +00:00
|
|
|
echo Line 10
|
2021-03-28 09:24:00 +00:00
|
|
|
cd ../src/
|
2024-01-10 15:23:53 +00:00
|
|
|
echo Line 11
|
2022-10-16 14:13:16 +00:00
|
|
|
rmdir /S /Q build
|
2024-01-10 15:23:53 +00:00
|
|
|
echo Line 12
|
2022-10-16 14:13:16 +00:00
|
|
|
rmdir /S /Q release
|
2024-01-10 15:23:53 +00:00
|
|
|
echo Line 13
|
2022-10-16 14:13:16 +00:00
|
|
|
rmdir /S /Q debug
|
2024-01-10 15:23:53 +00:00
|
|
|
echo Line 20
|
2021-03-28 09:24:00 +00:00
|
|
|
mingw32-make clean
|
2024-01-10 15:23:53 +00:00
|
|
|
echo Line 21
|
2022-10-16 14:13:16 +00:00
|
|
|
for /f "tokens=2 delims=\=" %%a in ('type src.pro^|find "PKGVERSION = "') do (
|
2022-10-06 10:10:55 +00:00
|
|
|
set KLOGDEVELVERSION=%%a & goto :continue
|
|
|
|
)
|
2024-01-10 15:23:53 +00:00
|
|
|
echo Line 30
|
2022-10-06 10:10:55 +00:00
|
|
|
:continue
|
2023-10-28 11:03:26 +00:00
|
|
|
@echo on
|
|
|
|
SETLOCAL EnableDelayedExpansion
|
|
|
|
set KLOGDEVELVERSION=!KLOGDEVELVERSION: =!
|
|
|
|
rem set KLOGDEVELVERSION=%KLOGDEVELVERSION:~1%
|
2022-10-06 10:10:55 +00:00
|
|
|
echo Building KLog-%KLOGDEVELVERSION%
|
2024-01-10 15:23:53 +00:00
|
|
|
echo Line 40
|
2023-10-27 22:42:59 +00:00
|
|
|
qmake -set CONFIG+=x86_64
|
2024-01-10 15:23:53 +00:00
|
|
|
echo Line 41
|
2024-01-10 15:20:31 +00:00
|
|
|
qmake src.pro
|
2024-01-10 15:23:53 +00:00
|
|
|
echo Line 42
|
2024-01-10 15:20:31 +00:00
|
|
|
mingw32-make
|
2024-01-10 15:23:53 +00:00
|
|
|
echo Line 43
|
2024-01-10 15:20:31 +00:00
|
|
|
mkdir release
|
2024-01-10 15:23:53 +00:00
|
|
|
echo Line 44
|
2022-10-06 10:10:55 +00:00
|
|
|
xcopy /Y /S /F build\target\* release
|
2024-01-10 15:23:53 +00:00
|
|
|
echo Line 45
|
2022-02-13 17:06:03 +00:00
|
|
|
echo localdir=%cd%
|
|
|
|
echo %localdir%
|
2023-10-29 12:25:49 +00:00
|
|
|
rem COPY OpenSSL-1 DLL
|
2024-01-10 15:23:53 +00:00
|
|
|
echo Line 50
|
2024-01-22 20:10:43 +00:00
|
|
|
copy ..\..\libs\win64\openssl\*.dll release
|
2024-01-10 15:20:31 +00:00
|
|
|
echo Line 51
|
2024-01-22 20:10:43 +00:00
|
|
|
copy ..\..\libs\win64\hamlib\bin\*.dll release
|
2024-01-10 15:20:31 +00:00
|
|
|
echo Line 52
|
2024-01-22 20:10:43 +00:00
|
|
|
rem windeployqt --qmldir release release\klog.exe
|
|
|
|
rem windeployqt --qmldir qml release\klog.exe
|
|
|
|
windeployqt --dir release --compiler-runtime --qmldir qml release\klog.exe
|
2024-01-10 15:20:31 +00:00
|
|
|
echo Line 60
|
2021-03-28 09:24:00 +00:00
|
|
|
:: The SSL DLLs must be included and must match the version that were used to build Qt.
|
|
|
|
:: Check in main.cpp and uncomment the SSL line to see what is the version that was used.
|
|
|
|
:: After knowing the version, the package can be obtained from: https://indy.fulgan.com/SSL/Archive/
|
2022-02-13 17:06:03 +00:00
|
|
|
|
2021-03-28 09:24:00 +00:00
|
|
|
rem cd ..\..
|
2022-08-30 17:12:02 +00:00
|
|
|
echo %cd%
|
|
|
|
cd ../devscripts
|
|
|
|
echo %cd%
|
2024-01-10 15:20:31 +00:00
|
|
|
echo Line 90
|
2023-10-28 11:03:26 +00:00
|
|
|
builder-cli.exe build build-win64.xml --verbose
|
2024-01-10 15:20:31 +00:00
|
|
|
echo Line 999
|
2021-03-28 09:24:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
|