target WinExe to hide console window in release mode, move ui exe into resources

This commit is contained in:
LukeFZ
2025-01-25 15:51:33 +01:00
parent 44af299ec3
commit 1b6cf7c776
4 changed files with 12 additions and 9 deletions

3
.gitignore vendored
View File

@@ -268,3 +268,6 @@ paket-files/
/Il2CppInspector.sln.DotSettings
/Il2CppTests/samples
/Il2CppTests/TestCpp
# for dotnet-tools.json
.config

View File

@@ -7,6 +7,7 @@
<InvariantGlobalization>true</InvariantGlobalization>
<PublishAot>false</PublishAot>
<!-- todo: enable this once the app is aot compliant! -->
<OutputType Condition="'$(Configuration)' == 'Release'">WinExe</OutputType>
</PropertyGroup>
<ItemGroup>

View File

@@ -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"
}

View File

@@ -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;