Skip to content

Commit

Permalink
updated installer.
Browse files Browse the repository at this point in the history
  • Loading branch information
treefrogframework committed Nov 30, 2024
1 parent 14f06fe commit f8c7f8f
Show file tree
Hide file tree
Showing 7 changed files with 147 additions and 190 deletions.
4 changes: 2 additions & 2 deletions installer/create_installer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ set LIB=
set PATH=C:\WINDOWS\system32;C:\WINDOWS

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
call :build_msi "%QTBASE%\6.8.0\msvc2022_64\bin\qtenv2.bat" 6.8

:: Clear environment variables
set VCToolsVersion=
Expand All @@ -36,7 +36,7 @@ set LIB=
set PATH=C:\WINDOWS\system32;C:\WINDOWS

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_msi "%QTBASE%\6.7.3\msvc2022_64\bin\qtenv2.bat" 6.7

call :build_setup treefrog-%VERSION%-msvc_64-setup.exe

Expand Down
20 changes: 10 additions & 10 deletions installer/msi/TreeFrog.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<!-- *** 基本的に 9行目,10行目,42行目,54行目も修正する (guidgen使用) *** -->

<!-- プロダクト情報 -->
<Product Name='TreeFrog Framework 2.9.0'
Id="DDB2A2E5-ECD1-4C0F-998F-533149FB3637"
UpgradeCode="39124F5E-CBB3-4A79-90A0-C47729C9F506"
<Product Name='TreeFrog Framework 2.10.0'
Id="E62F0889-126C-4B96-B216-14A4E5B4409A"
UpgradeCode="EF057FD0-AB58-44D9-AB7F-23138622F72A"
Language='1041' Codepage='932'
Version='2.9.0' Manufacturer='TreeFrog Framework Project'>
Version='2.10.0' Manufacturer='TreeFrog Framework Project'>

<!-- パッケージ情報 -->
<Package Id='*' Keywords='Installer'
Expand All @@ -27,21 +27,21 @@
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='WINDOWSVOLUME'>
<Directory Id='INSTALLDIR' Name='TreeFrog'>
<Directory Id='VERSIONDIR' Name='2.9.0'>
<Directory Id='VERSIONDIR' Name='2.10.0'>
</Directory>
</Directory>
</Directory>
<Directory Id="DesktopFolder" SourceName="Desktop"/>
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="TreeFrog Framework 2.9.0"/>
<Directory Id="ApplicationProgramsFolder" Name="TreeFrog Framework 2.10.0"/>
</Directory>
</Directory>

<!-- デスクトップショートカット -->
<DirectoryRef Id="DesktopFolder">
<Component Id="DesktopShortcut" Guid="4CA80893-F007-4E29-A3B5-530ACE94C7EB">
<Component Id="DesktopShortcut" Guid="70D025DC-2123-4D90-8F58-94C02E1274D1">
<Shortcut Id="PromptDesktopShortcut"
Name="TreeFrog Prompt 2.9.0"
Name="TreeFrog Prompt 2.10.0"
Description="TreeFrog Framework Prompt"
Target="[SystemFolder]cmd.exe" Arguments="/K [VERSIONDIR]bin\\tfenv.bat"
WorkingDirectory="PersonalFolder"/>
Expand All @@ -51,12 +51,12 @@

<!-- プログラムメニューショートカット -->
<DirectoryRef Id="ApplicationProgramsFolder">
<Component Id="ApplicationShortcut" Guid="BE257E94-EA18-477F-B585-49E9D1B0E0C5">
<Component Id="ApplicationShortcut" Guid="29D7EA6D-B7C3-4516-A141-FDB7F307502D">
<CreateFolder Directory="ApplicationProgramsFolder"/>

<!-- Shortcut to TF prompt-->
<Shortcut Id="PromptProgramMenuShortcut"
Name="TreeFrog Prompt 2.9.0"
Name="TreeFrog Prompt 2.10.0"
Description="TreeFrog Framework Prompt"
Target="[SystemFolder]cmd.exe" Arguments="/K [VERSIONDIR]bin\\tfenv.bat"
WorkingDirectory="PersonalFolder"/>
Expand Down
13 changes: 6 additions & 7 deletions installer/treefrog-setup/treefrog-setup/AssemblyInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ using namespace System::Runtime::InteropServices;
using namespace System::Security::Permissions;

//
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
//
[assembly:AssemblyTitleAttribute("treefrogsetup")];
[assembly:AssemblyDescriptionAttribute("")];
Expand All @@ -21,19 +21,18 @@ using namespace System::Security::Permissions;
[assembly:AssemblyCultureAttribute("")];

//
// アセンブリのバージョン情報は、以下の 4 つの値で構成されています:
// アセンブリのバージョン情報は、以下の 4 つの値で構成されています:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// すべての値を指定するか、下のように '*' を使ってリビジョンおよびビルド番号を
// 既定値にすることができます:
// すべての値を指定するか、下のように '*' を使ってリビジョンおよびビルド番号を
// 既定値にすることができます:

[assembly:AssemblyVersionAttribute("2.10.0")];

[assembly:ComVisible(false)];

[assembly:CLSCompliantAttribute(true)];

58 changes: 9 additions & 49 deletions installer/treefrog-setup/treefrog-setup/MainForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#undef GetTempPath

//
// リリースする際は50行目を編集!
// リリースする際は50行目を編集!
//


Expand Down Expand Up @@ -45,13 +45,13 @@ namespace treefrogsetup {
static initonly String^ TF_ENV_BAT = "C:\\TreeFrog\\" + VersionString() + "\\bin\\tfenv.bat"; // Base Directory

//
// バージョン
// バージョン
//
static initonly String^ VERSION_STR6_NEW = L"6.7";
static initonly String^ VERSION_STR6_PREV = L"6.6";
static initonly String^ VERSION_STR6_NEW = L"6.8";
static initonly String^ VERSION_STR6_PREV = L"6.7";

static initonly int RCID_NEW = IDR_TREEFROG_QT607_MSI;
static initonly int RCID_PREV = IDR_TREEFROG_QT606_MSI;
static initonly int RCID_NEW = IDR_TREEFROG_QT608_MSI;
static initonly int RCID_PREV = IDR_TREEFROG_QT607_MSI;

public:
MainForm(void)
Expand All @@ -65,25 +65,6 @@ namespace treefrogsetup {

this->Text = "TreeFrog Framework " + VersionString() + " Setup";
String^ folder = L"C:\\Qt";

//try {
// // Check Qt5 Folder
// String^ fol = L"C:\\Qt";
// array<String^>^ dir = Directory::GetDirectories(fol);

// if (dir->Length > 0) {
// fol = dir[0];
// for (int i = 1; i < dir->Length; ++i) {
// if (dir[i]->IndexOf("creator", StringComparison::OrdinalIgnoreCase) < 0) {
// fol = (String::Compare(fol, dir[i]) >= 0) ? fol : dir[i];
// }
// }
// folder = fol;
// }
//} catch (...) {
// //
//}

forderTextBox->Text = folder;
}

Expand All @@ -106,8 +87,8 @@ namespace treefrogsetup {

#pragma region Windows Form Designer generated code
/// <summary>
/// デザイナー サポートに必要なメソッドです。このメソッドの内容を
/// コード エディターで変更しないでください。
/// デザイナー サポートに必要なメソッドです。このメソッドの内容を
/// コード エディターで変更しないでください。
/// </summary>
void InitializeComponent(void)
{
Expand Down Expand Up @@ -183,7 +164,7 @@ namespace treefrogsetup {
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(162, 15);
this->label1->TabIndex = 5;
this->label1->Text = L"Example: C:\\Qt\\" + VERSION_STR6_NEW + ".0\\msvc2019_64";
this->label1->Text = L"Example: C:\\Qt\\" + VERSION_STR6_NEW + ".0\\msvc2022_64";
//
// labeltop
//
Expand Down Expand Up @@ -348,7 +329,6 @@ namespace treefrogsetup {
List<String ^>^ bins = gcnew List<String ^>();

if (forderTextBox->Text != L"C:\\") {
//bins->AddRange(searchSubDirectories(L"bin", searchSubDirectories(L"mingw*", forderTextBox->Text, excludes), excludes));
bins->AddRange(searchSubDirectories(L"bin", searchSubDirectories(L"msvc20*", forderTextBox->Text, excludes), excludes));

// Qt 5.9 or later
Expand Down Expand Up @@ -454,26 +434,6 @@ namespace treefrogsetup {
return;
}

//// Edits tfenv.bat
//IO::FileInfo^ fibat = gcnew IO::FileInfo(TF_ENV_BAT);
//if (proc->ExitCode == 0 && fibat->Exists) {
// String^ out;

// StreamReader^ din = File::OpenText(TF_ENV_BAT);
// String^ line;
// while ((line = din->ReadLine()) != nullptr) {
// if (line->StartsWith("set PATH=")) {
// line = L"set PATH=%TFDIR%\\bin;" + qtbin + "%PATH%";
// }
// out += line + "\r\n";
// }
// din->Close();

// StreamWriter^ dout = gcnew StreamWriter(TF_ENV_BAT);
// dout->Write(out);
// dout->Close();
//}

// Edits tfenv.bat
IO::FileInfo^ fibat = gcnew IO::FileInfo(TF_ENV_BAT);
if (proc->ExitCode == 0 && fibat->Exists) {
Expand Down
9 changes: 3 additions & 6 deletions installer/treefrog-setup/treefrog-setup/app.rc
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ LANGUAGE 17, SUBLANG_DEFAULT
//
// User resources
//
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDR_TREEFROG_QT603_MSI TREEFROG_MSI "..\\..\\msi\\TreeFrog-SDK-Qt6.3.msi"

LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDR_TREEFROG_QT604_MSI TREEFROG_MSI "..\\..\\msi\\TreeFrog-SDK-Qt6.4.msi"

LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDR_TREEFROG_QT605_MSI TREEFROG_MSI "..\\..\\msi\\TreeFrog-SDK-Qt6.5.msi"

Expand All @@ -32,6 +26,9 @@ IDR_TREEFROG_QT606_MSI TREEFROG_MSI "..\\..\\msi\\TreeFrog-SDK-Qt6.6.msi"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDR_TREEFROG_QT607_MSI TREEFROG_MSI "..\\..\\msi\\TreeFrog-SDK-Qt6.7.msi"

LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDR_TREEFROG_QT608_MSI TREEFROG_MSI "..\\..\\msi\\TreeFrog-SDK-Qt6.8.msi"


//
// String Table resources
Expand Down
2 changes: 1 addition & 1 deletion installer/treefrog-setup/treefrog-setup/treefrog-setup.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// treefrog-setup.cpp : メイン プロジェクト ファイルです。
// treefrog-setup.cpp

#include "stdafx.h"
#include "MainForm.h"
Expand Down
Loading

0 comments on commit f8c7f8f

Please sign in to comment.