From 80348a74ec54fb189382915ed224491055d34d9f Mon Sep 17 00:00:00 2001 From: AOYAMA Kazuharu Date: Sat, 15 Jun 2024 13:01:05 +0900 Subject: [PATCH] update installer for windows. --- build.bat | 2 +- configure.bat | 11 +++++++--- installer/create_installer.bat | 8 ++++---- installer/msi/TreeFrog.wxs | 20 +++++++++---------- .../treefrog-setup/AssemblyInfo.cpp | 14 ++++++------- .../treefrog-setup/treefrog-setup/MainForm.h | 8 ++++---- .../treefrog-setup/treefrog-setup/resource.h | 6 ++++++ 7 files changed, 40 insertions(+), 29 deletions(-) diff --git a/build.bat b/build.bat index a630ee62b..a644d8299 100644 --- a/build.bat +++ b/build.bat @@ -7,7 +7,7 @@ rem set BASEDIR=%~dp0 -call "C:\Qt\6.6.1\msvc2019_64\bin\qtenv2.bat" +call "C:\Qt\6.6.3\msvc2019_64\bin\qtenv2.bat" rem call "C:\Qt\5.13.0\msvc2017\bin\qtenv2.bat" set ARCH=amd64 diff --git a/configure.bat b/configure.bat index 0132eb768..9c3641ef4 100644 --- a/configure.bat +++ b/configure.bat @@ -68,14 +68,19 @@ if "%QMAKE%" == "" ( echo Qt environment not found exit /b ) +qmake --version + if "%CMAKE%" == "" ( echo CMake not found exit /b ) +cmake --version + if "%MAKE%" == "" ( echo Make not found exit /b ) + if "%MSCOMPILER%" == "" if "%DEVENV%" == "" ( echo Visual Studio compiler not found exit /b @@ -170,7 +175,7 @@ cd %BASEDIR%3rdparty rd /s /q lz4 >nul 2>&1 del /f /q lz4 >nul 2>&1 mklink /j lz4 lz4-%LZ4_VERSION% >nul 2>&1 -del /f /q lz4\build\cmake\build >nul 2>&1 +rmdir /s /q lz4\build\cmake\build >nul 2>&1 cmake %CMAKEOPT% -S lz4\build\cmake -B lz4\build\cmake\build -DBUILD_STATIC_LIBS=ON set BUILDCMD=cmake --build lz4\build\cmake\build --config Release --clean-first -j echo %BUILDCMD% @@ -191,10 +196,10 @@ rd /s /q glog >nul 2>&1 del /f /q glog >nul 2>&1 mklink /j glog glog-%GLOG_VERSION% >nul 2>&1 cd %BASEDIR%3rdparty\glog -del /f /q build >nul 2>&1 +rmdir /s /q build >nul 2>&1 set CMAKECMD=cmake -S . -B build %CMAKEOPT% echo %CMAKECMD% -%CMAKECMD% >nul 2>&1 +%CMAKECMD% set CMAKECMD=cmake --build build -j echo %CMAKECMD% %CMAKECMD% >nul 2>&1 diff --git a/installer/create_installer.bat b/installer/create_installer.bat index 853e20ce7..4579d06d1 100644 --- a/installer/create_installer.bat +++ b/installer/create_installer.bat @@ -24,8 +24,8 @@ set INCLUDE= set LIB= set PATH=C:\WINDOWS\system32;C:\WINDOWS -call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 -call :build_msi "%QTBASE%\6.6.1\msvc2019_64\bin\qtenv2.bat" 6.6 +call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 +call :build_msi "%QTBASE%\6.7.1\msvc2019_64\bin\qtenv2.bat" 6.7 :: Clear environment variables set VCToolsVersion= @@ -35,8 +35,8 @@ set INCLUDE= set LIB= set PATH=C:\WINDOWS\system32;C:\WINDOWS -call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 -call :build_msi "%QTBASE%\6.5.3\msvc2019_64\bin\qtenv2.bat" 6.5 +call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 +call :build_msi "%QTBASE%\6.6.3\msvc2019_64\bin\qtenv2.bat" 6.6 call :build_setup treefrog-%VERSION%-msvc_64-setup.exe diff --git a/installer/msi/TreeFrog.wxs b/installer/msi/TreeFrog.wxs index 8ed84466c..f8c174acd 100644 --- a/installer/msi/TreeFrog.wxs +++ b/installer/msi/TreeFrog.wxs @@ -5,11 +5,11 @@ - + Version='2.9.0' Manufacturer='TreeFrog Framework Project'> - + - + - + @@ -51,12 +51,12 @@ - + diff --git a/installer/treefrog-setup/treefrog-setup/AssemblyInfo.cpp b/installer/treefrog-setup/treefrog-setup/AssemblyInfo.cpp index 2a4cb3f5b..5335e3477 100644 --- a/installer/treefrog-setup/treefrog-setup/AssemblyInfo.cpp +++ b/installer/treefrog-setup/treefrog-setup/AssemblyInfo.cpp @@ -7,29 +7,29 @@ using namespace System::Runtime::InteropServices; using namespace System::Security::Permissions; // -// AZuɊւʏ͈ȉ̑ZbgƂĐ䂳܂B -// AZuɊ֘AtĂύXɂ́A -// ̑lύXĂB +// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 +// アセンブリに関連付けられている情報を変更するには、 +// これらの属性値を変更してください。 // [assembly:AssemblyTitleAttribute("treefrogsetup")]; [assembly:AssemblyDescriptionAttribute("")]; [assembly:AssemblyConfigurationAttribute("")]; [assembly:AssemblyCompanyAttribute("")]; [assembly:AssemblyProductAttribute("treefrogsetup")]; -[assembly:AssemblyCopyrightAttribute("Copyright (c) 2010-2023")]; +[assembly:AssemblyCopyrightAttribute("Copyright (c) 2010-2024")]; [assembly:AssemblyTrademarkAttribute("")]; [assembly:AssemblyCultureAttribute("")]; // -// AZũo[ẂAȉ 4 ‚̒lō\Ă܂: +// アセンブリのバージョン情報は、以下の 4 つの値で構成されています: // // Major Version // Minor Version // Build Number // Revision // -// ׂĂ̒lw肷邩Â悤 '*' gărWуrhԍ -// lɂ邱Ƃł܂: +// すべての値を指定するか、下のように '*' を使ってリビジョンおよびビルド番号を +// 既定値にすることができます: [assembly:AssemblyVersionAttribute("2.9.0")]; diff --git a/installer/treefrog-setup/treefrog-setup/MainForm.h b/installer/treefrog-setup/treefrog-setup/MainForm.h index e0f04f141..b2a04c4a6 100644 --- a/installer/treefrog-setup/treefrog-setup/MainForm.h +++ b/installer/treefrog-setup/treefrog-setup/MainForm.h @@ -47,11 +47,11 @@ namespace treefrogsetup { // // バージョン // - static initonly String^ VERSION_STR6_NEW = L"6.6"; - static initonly String^ VERSION_STR6_PREV = L"6.5"; + static initonly String^ VERSION_STR6_NEW = L"6.7"; + static initonly String^ VERSION_STR6_PREV = L"6.6"; - static initonly int RCID_NEW = IDR_TREEFROG_QT606_MSI; - static initonly int RCID_PREV = IDR_TREEFROG_QT605_MSI; + static initonly int RCID_NEW = IDR_TREEFROG_QT607_MSI; + static initonly int RCID_PREV = IDR_TREEFROG_QT606_MSI; public: MainForm(void) diff --git a/installer/treefrog-setup/treefrog-setup/resource.h b/installer/treefrog-setup/treefrog-setup/resource.h index e64776665..3d51ab698 100644 --- a/installer/treefrog-setup/treefrog-setup/resource.h +++ b/installer/treefrog-setup/treefrog-setup/resource.h @@ -13,3 +13,9 @@ #define IDR_TREEFROG_QT605_MSI 10605 #define IDR_TREEFROG_QT606_MSI 10606 #define IDR_TREEFROG_QT607_MSI 10607 +#define IDR_TREEFROG_QT608_MSI 10608 +#define IDR_TREEFROG_QT609_MSI 10609 +#define IDR_TREEFROG_QT610_MSI 10610 +#define IDR_TREEFROG_QT611_MSI 10611 +#define IDR_TREEFROG_QT612_MSI 10612 +#define IDR_TREEFROG_QT613_MSI 10613