Cleanup before merging to main

This commit is contained in:
2026-06-10 10:55:59 -05:00
parent c52e505c18
commit 61934bb2f4
3 changed files with 13 additions and 14 deletions

View File

@@ -98,14 +98,12 @@ func patchBinaryForNixos(binaryPath string) error {
return nil
}
fmt.Println("[NixOS Detected] Patching server interpreter pathway...")
fmt.Println("[NixOS Detected] Patching server binary...")
dotnetRoot := os.Getenv("DOTNET_ROOT")
var interpreter string
if dotnetRoot != "" {
// Use the glibc version that matches the active .NET runtime exactly
// Finds the underlying ld-linux-x86-64.so.2 link within the .NET store closure
out, err := exec.Command("patchelf", "--print-interpreter", filepath.Join(dotnetRoot, "dotnet")).Output()
if err == nil && len(out) > 0 {
interpreter = strings.TrimSpace(string(out))