Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions Runtimes/NET/BepisLoader/LinuxBootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,25 +82,6 @@ main()
chmod +x "$DOTNET_EXECUTABLE"


# Replace Windows runtime config with Linux runtime config for BepisLoader
if [ -f "./BepisLoader.runtimeconfig.json" ]; then
cat > "./BepisLoader.runtimeconfig.json" <<-'EOF'
{
"runtimeOptions": {
"tfm": "net10.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "10.0.0"
},
"configProperties": {
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}
EOF
fi

echo "Parsing hookfxr parameters"
HOOKFXR_STATUS=""
TARGET_ASSEMBLY=""
Expand Down
33 changes: 0 additions & 33 deletions build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -467,39 +467,6 @@ public override void Run(BuildContext ctx)
ctx.Log.Warning($"hookfxr cache directory not found: {hookfxrPath}");
}

// Replace contents of BepisLoader.runtimeconfig.json with the proper framework configuration for windows
var runtimeConfigPath = targetDir.CombineWithFilePath("BepisLoader.runtimeconfig.json");
if (ctx.FileExists(runtimeConfigPath))
{
var runtimeConfig = """
{
"runtimeOptions": {
"tfm": "net10.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "10.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "10.0.0"
}
],
"configProperties": {
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}
""";
System.IO.File.WriteAllText(runtimeConfigPath.FullPath, runtimeConfig);
ctx.Log.Information("Updated BepisLoader.runtimeconfig.json with proper framework configuration");
}
else
{
ctx.Log.Warning($"BepisLoader.runtimeconfig.json not found at: {runtimeConfigPath}");
}

// Copy icon.ico from BepisLoader project directory to BepInEx folder
var iconPath = ctx.RootDirectory.CombineWithFilePath("Runtimes/NET/BepisLoader/icon.ico");
if (ctx.FileExists(iconPath))
Expand Down
Loading