From 1b6cf7c77601d12a86bb84b945f1589f38d22293 Mon Sep 17 00:00:00 2001
From: LukeFZ <17146677+LukeFZ@users.noreply.github.com>
Date: Sat, 25 Jan 2025 15:51:33 +0100
Subject: [PATCH] target WinExe to hide console window in release mode, move ui
exe into resources
---
.gitignore | 3 +++
.../Il2CppInspector.Redux.GUI.csproj | 1 +
.../Properties/launchSettings.json | 14 ++++++--------
Il2CppInspector.Redux.GUI/UiProcessService.cs | 3 ++-
4 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/.gitignore b/.gitignore
index c5e3afa..8803027 100644
--- a/.gitignore
+++ b/.gitignore
@@ -268,3 +268,6 @@ paket-files/
/Il2CppInspector.sln.DotSettings
/Il2CppTests/samples
/Il2CppTests/TestCpp
+
+# for dotnet-tools.json
+.config
\ No newline at end of file
diff --git a/Il2CppInspector.Redux.GUI/Il2CppInspector.Redux.GUI.csproj b/Il2CppInspector.Redux.GUI/Il2CppInspector.Redux.GUI.csproj
index b3a23ad..be11993 100644
--- a/Il2CppInspector.Redux.GUI/Il2CppInspector.Redux.GUI.csproj
+++ b/Il2CppInspector.Redux.GUI/Il2CppInspector.Redux.GUI.csproj
@@ -7,6 +7,7 @@
true
false
+ WinExe
diff --git a/Il2CppInspector.Redux.GUI/Properties/launchSettings.json b/Il2CppInspector.Redux.GUI/Properties/launchSettings.json
index c5dee4c..720a0e8 100644
--- a/Il2CppInspector.Redux.GUI/Properties/launchSettings.json
+++ b/Il2CppInspector.Redux.GUI/Properties/launchSettings.json
@@ -1,15 +1,13 @@
{
- "$schema": "https://json.schemastore.org/launchsettings.json",
"profiles": {
"http": {
"commandName": "Project",
- "dotnetRunMessages": true,
- "launchBrowser": true,
- "launchUrl": "todos",
- "applicationUrl": "http://localhost:5154",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
- }
+ },
+ "dotnetRunMessages": true,
+ "applicationUrl": "http://localhost:5154"
}
- }
-}
+ },
+ "$schema": "https://json.schemastore.org/launchsettings.json"
+}
\ No newline at end of file
diff --git a/Il2CppInspector.Redux.GUI/UiProcessService.cs b/Il2CppInspector.Redux.GUI/UiProcessService.cs
index 6719d67..ce8169f 100644
--- a/Il2CppInspector.Redux.GUI/UiProcessService.cs
+++ b/Il2CppInspector.Redux.GUI/UiProcessService.cs
@@ -4,7 +4,8 @@ namespace Il2CppInspector.Redux.GUI;
public class UiProcessService(IHostApplicationLifetime lifetime) : BackgroundService
{
- private const string UiExecutableName = "Il2CppInspector.Redux.GUI.UI.exe";
+ // NOTE: this is not really a good solution for getting people to launch the correct program.
+ private const string UiExecutableName = "./resources/il2cppinspectorredux.exe";
private Process? _uiProcess;